aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/cookie.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index f6cfc29cf..009bb9809 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -651,6 +651,10 @@ struct CookieInfo *Curl_cookie_init(struct SessionHandle *data,
fp = stdin;
fromfile=FALSE;
}
+ else if(file && !*file) {
+ /* points to a "" string */
+ fp = NULL;
+ }
else
fp = file?fopen(file, "r"):NULL;