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
1 changed files with 1 additions and 1 deletions

View 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)) {