aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-05 06:57:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-05 06:57:04 +0000
commita331aa02213238d8efae9a046fea93860c62fc87 (patch)
tree226616ef1321dcf3b9ef14ae8906260d95bc82e8 /lib/memdebug.c
parent679cabb532a85f3fb789668c7e1c4aa832d1bc74 (diff)
make the memlimit final NULL return get written to stderr as wella
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c3
1 files changed, 3 insertions, 0 deletions
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