diff options
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index f17f39c83..f859b0bee 100644 --- 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; |