Browse Source

cookies: fp is always not NULL

Closes #10383
Kvarec Lezki 1 year ago
parent
commit
9caa7bc930
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/cookie.c

+ 1 - 1
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);
   }