Skip to content

Commit

Permalink
#0000390 Round 2 of fix coverity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MOHAMED Kallel committed Nov 1, 2019
1 parent c3bac73 commit b0363d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/http.c
Expand Up @@ -91,10 +91,9 @@ http_client_exit(void)
curl = NULL;
}
curl_global_cleanup();
if (access(fc_cookies, W_OK) == 0) {
if(remove(fc_cookies) < 0)
log_message(NAME, L_NOTICE, "can't remove file %s\n", fc_cookies);
}

if(remove(fc_cookies) < 0)
log_message(NAME, L_NOTICE, "can't remove file %s\n", fc_cookies);
}

static size_t
Expand Down

0 comments on commit b0363d0

Please sign in to comment.