From dcaae6bb5b685e47b65d12b49d394f3d844ba5ff Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 24 May 2022 10:57:32 +0200 Subject: [PATCH] cookie: fix false positive "potentially uninitialized local variable" Reviewed-by: Daniel Gustafsson Closes #8903 --- lib/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3