summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-02-26 23:50:03 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-02-26 23:50:03 +0100
commit7730d1157823f781d93ab4df251577d663218ac5 (patch)
treef2263735586c6927554b43eaa30d08a8e29657a6
parent6375b205a9d3ebe9583871178db258e6a1f4dfff (diff)
downloadcurl-7730d1157823f781d93ab4df251577d663218ac5.tar.gz
cookie: remove unnecessary check for 'out != 0'
... as it will always be non-NULL at this point. Detected by Coverity: CID 1459009
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index cf18745bc..69bc04260 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -1579,7 +1579,7 @@ static int cookie_output(struct Curl_easy *data,
free(array);
}
- if(out && !use_stdout) {
+ if(!use_stdout) {
fclose(out);
out = NULL;
if(Curl_rename(tempstore, filename)) {