Skip to content
Snippets Groups Projects
Commit a331aa02 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 679cabb5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment