1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

cookie: remove unnecessary check for 'out != 0'

... as it will always be non-NULL at this point.

Detected by Coverity: CID 1459009
This commit is contained in:
Daniel Stenberg 2020-02-26 23:50:03 +01:00
parent 6375b205a9
commit 7730d11578
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1579,7 +1579,7 @@ static int cookie_output(struct Curl_easy *data,
free(array); free(array);
} }
if(out && !use_stdout) { if(!use_stdout) {
fclose(out); fclose(out);
out = NULL; out = NULL;
if(Curl_rename(tempstore, filename)) { if(Curl_rename(tempstore, filename)) {