Set errno = ENOMEM on faild countcheck().

This commit is contained in:
Gisle Vanem 2004-10-13 19:11:46 +00:00
parent c98676068e
commit 9deb76ce3e
1 changed files with 1 additions and 0 deletions

View File

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