init the errorbuf to prevent junk from being output
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 Nov 2001 23:01:01 +0000 (23:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Nov 2001 23:01:01 +0000 (23:01 +0000)
src/main.c

index f419e0a..f71262b 100644 (file)
@@ -1839,6 +1839,8 @@ operate(struct Configurable *config, int argc, char *argv[])
   int res = 0;
   int i;
 
+  errorbuffer[0]=0; /* prevent junk from being output */
+
 #ifdef MALLOCDEBUG
   /* this sends all memory debug messages to a logfile named memdump */
   curl_memdebug("memdump");