cookies: fp is always not NULL

Closes #10383
This commit is contained in:
Kvarec Lezki 2023-02-01 11:00:03 +05:00 committed by Daniel Stenberg
parent fc8ad0b23c
commit 9caa7bc930
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1299,7 +1299,7 @@ struct CookieInfo *Curl_cookie_init(struct Curl_easy *data,
*/
remove_expired(c);
if(fromfile && fp)
if(fromfile)
fclose(fp);
}