- Tim Ansell fixed a compiler warning in lib/cookie.c

This commit is contained in:
Daniel Stenberg
2009-01-15 08:32:58 +00:00
parent 7ac16811cc
commit 5e74c58b73
3 changed files with 5 additions and 3 deletions

View File

@@ -6,6 +6,9 @@
Changelog Changelog
Daniel Stenberg (15 Jan 2009)
- Tim Ansell fixed a compiler warning in lib/cookie.c
Daniel Stenberg (14 Jan 2009) Daniel Stenberg (14 Jan 2009)
- Grant Erickson fixed timeouts for TFTP such that specifying a - Grant Erickson fixed timeouts for TFTP such that specifying a
connect-timeout, a max-time or both options work correctly and as expected connect-timeout, a max-time or both options work correctly and as expected

View File

@@ -61,6 +61,6 @@ advice from friends like these:
Fred Machado, Ken Hirsch, Keshav Krity, Patrick Monnerat, Mark Karpeles, Fred Machado, Ken Hirsch, Keshav Krity, Patrick Monnerat, Mark Karpeles,
Anthony Bryan, Peter Korsgaard, Phil Lisiecki, Bas Mevissen, Rob Crittenden, Anthony Bryan, Peter Korsgaard, Phil Lisiecki, Bas Mevissen, Rob Crittenden,
Emil Romanus, Karl Moerder, Daniel Black, Stefan Teleman, Michael Wallner, Emil Romanus, Karl Moerder, Daniel Black, Stefan Teleman, Michael Wallner,
Grant Erickson Grant Erickson, Tim Ansell
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@@ -439,7 +439,7 @@ Curl_cookie_add(struct SessionHandle *data,
reading the odd netscape cookies-file format here */ reading the odd netscape cookies-file format here */
char *ptr; char *ptr;
char *firstptr; char *firstptr;
char *tok_buf; char *tok_buf=NULL;
int fields; int fields;
/* IE introduced HTTP-only cookies to prevent XSS attacks. Cookies /* IE introduced HTTP-only cookies to prevent XSS attacks. Cookies
@@ -454,7 +454,6 @@ Curl_cookie_add(struct SessionHandle *data,
co->httponly = TRUE; co->httponly = TRUE;
} }
if(lineptr[0]=='#') { if(lineptr[0]=='#') {
/* don't even try the comments */ /* don't even try the comments */
free(co); free(co);