aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2004-10-13 19:11:46 +0000
committerGisle Vanem <gvanem@broadpark.no>2004-10-13 19:11:46 +0000
commit9deb76ce3e508b72b2968f1b478f1854ab084680 (patch)
tree5dd7edc5bdd42431ad2522d73fd1eaa2f2702659
parentc98676068ee6778646239a4376a954871d4bfaa0 (diff)
Set errno = ENOMEM on faild countcheck().
-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