diff options
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 4 |
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; |