curl_free(env);
curl_memdebug("memdump");
}
+ env = curl_getenv("CURL_MEMLIMIT");
+ if(env) {
+ curl_memlimit(atoi(env));
+ curl_free(env);
+ }
#endif
/* we get libcurl info right away */
config->headerfile?&heads:NULL);
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, config->cookiefile);
/* cookie jar was added in 7.9 */
- curl_easy_setopt(curl, CURLOPT_COOKIEJAR, config->cookiejar);
+ if(config->cookiejar)
+ curl_easy_setopt(curl, CURLOPT_COOKIEJAR, config->cookiejar);
/* cookie session added in 7.9.7 */
curl_easy_setopt(curl, CURLOPT_COOKIESESSION, config->cookiesession);