From aaab5fa299e13c0c3abba929cb187a8ec3b006f9 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 20 Aug 2011 17:26:02 +0200 Subject: MemoryTracking: adjust initialization calling Calling of curl_memdebug() was still done with a pending free() --- lib/memdebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/memdebug.c') diff --git a/lib/memdebug.c b/lib/memdebug.c index 9617faf13..1a0a485a8 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -119,7 +119,7 @@ static long memsize = 0; /* set number of mallocs allowed */ void curl_memdebug(const char *logname) { if(!logfile) { - if(logname) + if(logname && *logname) logfile = fopen(logname, "w"); else logfile = stderr; -- cgit v1.2.3