Commit 18be9882 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent a102c2c2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -614,7 +614,6 @@ 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);
        if(clist->value)
          free(clist->value);