From: Daniel Stenberg Date: Wed, 5 May 2004 06:57:04 +0000 (+0000) Subject: make the memlimit final NULL return get written to stderr as wella X-Git-Tag: curl-7_12_0~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a331aa02213238d8efae9a046fea93860c62fc87;p=curl make the memlimit final NULL return get written to stderr as wella --- diff --git a/lib/memdebug.c b/lib/memdebug.c index 96ea5d94c..05d0702fe 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -91,6 +91,9 @@ static bool countcheck(const char *func, int line, const char *source) if(logfile && source) fprintf(logfile, "LIMIT %s:%d %s reached memlimit\n", source, line, func); + if(source) + fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n", + source, line, func); return TRUE; /* RETURN ERROR! */ } else