aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f419e0ac5..f71262bc2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");