aboutsummaryrefslogtreecommitdiff
path: root/lib/cookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cookie.c')
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 551dd1489..12e4074c2 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -423,7 +423,7 @@ struct CookieInfo *Curl_cookie_init(char *file, struct CookieInfo *inc)
}
c->running = FALSE; /* this is not running, this is init */
- if(strequal(file, "-")) {
+ if(file && strequal(file, "-")) {
fp = stdin;
fromfile=FALSE;
}