From 5e74c58b7309a147d2df7c2dc00c8bb8b90ae27e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Jan 2009 08:32:58 +0000 Subject: - Tim Ansell fixed a compiler warning in lib/cookie.c --- lib/cookie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/cookie.c') diff --git a/lib/cookie.c b/lib/cookie.c index 4f768f2db..bc2f09b22 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -439,7 +439,7 @@ Curl_cookie_add(struct SessionHandle *data, reading the odd netscape cookies-file format here */ char *ptr; char *firstptr; - char *tok_buf; + char *tok_buf=NULL; int fields; /* IE introduced HTTP-only cookies to prevent XSS attacks. Cookies @@ -454,7 +454,6 @@ Curl_cookie_add(struct SessionHandle *data, co->httponly = TRUE; } - if(lineptr[0]=='#') { /* don't even try the comments */ free(co); -- cgit v1.2.3