cookiejar now enables the cookie engine

This commit is contained in:
Daniel Stenberg 2001-10-10 12:48:32 +00:00
parent 51afc3d8c5
commit f2a25966cf
2 changed files with 8 additions and 2 deletions

View File

@ -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;
}

View File

@ -503,7 +503,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
/*
* Set cookie file name to dump all cookies to when we're done.
*/
data->set.cookiejar = cookiefile = (char *)va_arg(param, void *);
data->set.cookiejar = (char *)va_arg(param, void *);
/*
* Activate the cookie parser. This may or may not already
* have been made.
*/
data->cookies = Curl_cookie_init(NULL, data->cookies);
break;
case CURLOPT_WRITEHEADER:
/*