From: Daniel Stenberg Date: Wed, 26 Feb 2020 22:50:03 +0000 (+0100) Subject: cookie: remove unnecessary check for 'out != 0' X-Git-Tag: curl-7_69_0~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7730d1157823f781d93ab4df251577d663218ac5;p=thirdparty%2Fcurl.git cookie: remove unnecessary check for 'out != 0' ... as it will always be non-NULL at this point. Detected by Coverity: CID 1459009 --- diff --git a/lib/cookie.c b/lib/cookie.c index cf18745bc8..69bc04260a 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)) {