aboutsummaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-01-15 08:32:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-01-15 08:32:58 +0000
commit5e74c58b7309a147d2df7c2dc00c8bb8b90ae27e (patch)
tree64ca609e0558cfeb0e597bd4577b41af64dfe0c8 /lib/cookie.c
parent7ac16811cc4ecd40aa96592e77a04e9030f44baf (diff)
- Tim Ansell fixed a compiler warning in lib/cookie.c
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 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);