]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cookies: fp is always not NULL
authorKvarec Lezki <cuarzo@ya.ru>
Wed, 1 Feb 2023 06:00:03 +0000 (11:00 +0500)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Feb 2023 06:57:06 +0000 (07:57 +0100)
Closes #10383

lib/cookie.c

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