From: Kvarec Lezki Date: Wed, 1 Feb 2023 06:00:03 +0000 (+0500) Subject: cookies: fp is always not NULL X-Git-Tag: curl-7_88_0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9caa7bc930c9e611fa6cf5338f9db4b8838adccf;p=thirdparty%2Fcurl.git cookies: fp is always not NULL Closes #10383 --- diff --git a/lib/cookie.c b/lib/cookie.c index c061cd4cd7..c457b2d95f 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -1299,7 +1299,7 @@ struct CookieInfo *Curl_cookie_init(struct Curl_easy *data, */ remove_expired(c); - if(fromfile && fp) + if(fromfile) fclose(fp); }