Removed superfluous check of clist->name, as in this code path that pointer
has already been dereferenced so it is bound to be valid. Pointed out to us by coverity.com
This commit is contained in:
Родитель
a102c2c22b
Коммит
18be9882f7
|
@ -614,8 +614,7 @@ Curl_cookie_add(struct SessionHandle *data,
|
|||
co->next = clist->next; /* get the next-pointer first */
|
||||
|
||||
/* then free all the old pointers */
|
||||
if(clist->name)
|
||||
free(clist->name);
|
||||
free(clist->name);
|
||||
if(clist->value)
|
||||
free(clist->value);
|
||||
if(clist->domain)
|
||||
|
|
Загрузка…
Ссылка в новой задаче