From 1f19b508463a7bc2f8bb5a64311c2048d480705a Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 16 Jun 2015 00:05:09 +0200 Subject: [PATCH] Fix Coverty CID #96208: Unchecked return value from library. Replace `remove()` with our own `erase()` which checks the return value and warns on actual real failure. Signed-off-by: Joachim Nilsson --- api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.c b/api.c index 33805afe..29108063 100644 --- a/api.c +++ b/api.c @@ -262,7 +262,7 @@ int api_init(uev_ctx_t *ctx) return 1; } - remove(INIT_SOCKET); + erase(INIT_SOCKET); if (-1 == bind(sd, (struct sockaddr*)&sun, sizeof(sun))) goto error;