From 7730d1157823f781d93ab4df251577d663218ac5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Feb 2020 23:50:03 +0100 Subject: cookie: remove unnecessary check for 'out != 0' ... as it will always be non-NULL at this point. Detected by Coverity: CID 1459009 --- lib/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/cookie.c') 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)) { -- cgit v1.2.3