]> granicus.if.org Git - curl/commitdiff
make the memlimit final NULL return get written to stderr as wella
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 May 2004 06:57:04 +0000 (06:57 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 May 2004 06:57:04 +0000 (06:57 +0000)
lib/memdebug.c

index 96ea5d94c8b9717c81d2435d9662e73733b60cf0..05d0702fe1577f03d0a797a3b448af9bd9780e9b 100644 (file)
@@ -91,6 +91,9 @@ static bool countcheck(const char *func, int line, const char *source)
       if(logfile && source)
         fprintf(logfile, "LIMIT %s:%d %s reached memlimit\n",
                 source, line, func);
+      if(source)
+        fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
+                source, line, func);
       return TRUE; /* RETURN ERROR! */
     }
     else