aboutsummaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-13 21:03:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-13 21:03:12 +0000
commit18be9882f7ed8eaac5052e096c3868906385c1f6 (patch)
tree12cc99f3e5afd9f3a0075047dab21330ab907559 /lib/cookie.c
parenta102c2c22b2764359334f69a9f41174a0f303cab (diff)
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
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index ed541a12f..982bed063 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -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)