]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cookie: remove unnecessary check for 'out != 0'
authorDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2020 22:50:03 +0000 (23:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2020 22:50:03 +0000 (23:50 +0100)
... as it will always be non-NULL at this point.

Detected by Coverity: CID 1459009

lib/cookie.c

index cf18745bc84598dc17255c5b11e19d59d7a6e586..69bc04260aab0e6a33409569629342c3edb9f7b9 100644 (file)
@@ -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)) {