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:
Daniel Stenberg 2008-10-13 21:03:12 +00:00
Родитель a102c2c22b
Коммит 18be9882f7
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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)