1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

make the memlimit final NULL return get written to stderr as wella

This commit is contained in:
Daniel Stenberg 2004-05-05 06:57:04 +00:00
parent 679cabb532
commit a331aa0221

View File

@ -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