]> granicus.if.org Git - curl/commitdiff
Set errno = ENOMEM on faild countcheck().
authorGisle Vanem <gvanem@broadpark.no>
Wed, 13 Oct 2004 19:11:46 +0000 (19:11 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 13 Oct 2004 19:11:46 +0000 (19:11 +0000)
lib/memdebug.c

index f5ef34d449fd46afec776cb93e628e0e2ce2c328..af1094508b8666b2f832626d2888c477ece1e4bc 100644 (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