projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b911030
)
Curl_cookie_output() must check that there's a cookie struct present before
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 10 Sep 2001 07:43:08 +0000
(07:43 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 10 Sep 2001 07:43:08 +0000
(07:43 +0000)
trying to address it!
lib/cookie.c
patch
|
blob
|
history
diff --git
a/lib/cookie.c
b/lib/cookie.c
index
f17f39c
..
f859b0b
100644
(file)
--- a/
lib/cookie.c
+++ b/
lib/cookie.c
@@
-600,7
+600,7
@@
int Curl_cookie_output(struct CookieInfo *c, char *dumphere)
FILE *out;
bool use_stdout=FALSE;
- if(
0 == c->numcookies
)
+ if(
(NULL == c) || (0 == c->numcookies)
)
/* If there are no known cookies, we don't write or even create any
destination file */
return 0;