From: Daniel Stenberg Date: Tue, 24 May 2022 08:57:32 +0000 (+0200) Subject: cookie: fix false positive "potentially uninitialized local variable" X-Git-Tag: curl-7_84_0~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcaae6bb5b685e47b65d12b49d394f3d844ba5ff;p=thirdparty%2Fcurl.git cookie: fix false positive "potentially uninitialized local variable" Reviewed-by: Daniel Gustafsson Closes #8903 --- diff --git a/lib/cookie.c b/lib/cookie.c index ac53d27848..28961720fb 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -469,7 +469,7 @@ Curl_cookie_add(struct Curl_easy *data, struct Cookie *co; struct Cookie *lastc = NULL; struct Cookie *replace_co = NULL; - struct Cookie *replace_clist; + struct Cookie *replace_clist = NULL; time_t now = time(NULL); bool replace_old = FALSE; bool badcookie = FALSE; /* cookies are good by default. mmmmm yummy */