aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/memdebug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index f5ef34d44..af1094508 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -95,6 +95,7 @@ static bool countcheck(const char *func, int line, const char *source)
if(source)
fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
source, line, func);
+ errno = ENOMEM;
return TRUE; /* RETURN ERROR! */
}
else