cookie: fix false positive "potentially uninitialized local variable"

Reviewed-by: Daniel Gustafsson
Closes #8903
This commit is contained in:
Daniel Stenberg 2022-05-24 10:57:32 +02:00
parent 8f48b5d783
commit dcaae6bb5b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 */