From: Gisle Vanem Date: Wed, 13 Oct 2004 19:11:46 +0000 (+0000) Subject: Set errno = ENOMEM on faild countcheck(). X-Git-Tag: curl-7_12_2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9deb76ce3e508b72b2968f1b478f1854ab084680;p=curl Set errno = ENOMEM on faild countcheck(). --- 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