From a331aa02213238d8efae9a046fea93860c62fc87 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 5 May 2004 06:57:04 +0000 Subject: make the memlimit final NULL return get written to stderr as wella --- lib/memdebug.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/memdebug.c') 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 -- cgit v1.2.3