diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-27 15:51:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-27 15:51:03 +0000 |
commit | 289a42f050447ab7d0ec0d9c276e867a37be2430 (patch) | |
tree | 7bd20c99ba7d1fe0abe884931cfb9d8523b477ee /src | |
parent | ade1e79b376dd614c883682bd2e4b296bd596aa1 (diff) |
Make the debug build get the debug dump file path from the environment
variable to allow the test suite to better control where it ends up.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 14f34fac1..12ff3db91 100644 --- a/src/main.c +++ b/src/main.c @@ -2933,8 +2933,9 @@ operate(struct Configurable *config, int argc, char *argv[]) /* this sends all memory debug messages to a logfile named memdump */ env = curlx_getenv("CURL_MEMDEBUG"); if(env) { + /* use the value as file name */ + curl_memdebug(env); curl_free(env); - curl_memdebug("memdump"); } env = curlx_getenv("CURL_MEMLIMIT"); if(env) { |