aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 15:01:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 15:01:52 +0000
commit73500267eec76480432186c14041ef7d296dfb1f (patch)
tree6a0f7190aa55626b8b32d46ccc00d97519d25f42
parente6011e33a60128853e7aabc7c53fa7f429c3c33c (diff)
activate the new memory limit tests if requested
only set cookiejar if selected
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 54955916c..a8afbe9a8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2505,6 +2505,11 @@ operate(struct Configurable *config, int argc, char *argv[])
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 */
@@ -3057,7 +3062,8 @@ operate(struct Configurable *config, int argc, char *argv[])
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);