aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pacredir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pacredir.c b/pacredir.c
index ef7220a..281cadd 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -242,6 +242,7 @@ static void * get_http_code(void * data) {
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 3L);
/* provide a buffer to store errors in */
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
+ *errbuf = '\0';
/* perform the request */
if (curl_easy_perform(curl) != CURLE_OK) {