summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-10-10 10:26:59 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-10-10 10:26:59 +0200
commit15952fed8ef5001ba33856c7dd3dfb420d1fddd1 (patch)
tree292c8a19783d550c134aa2f76fb6bec55ff6f745
parenta102371a873912c8817e1a84910aecb20835a6c4 (diff)
downloadpacredir-15952fed8ef5001ba33856c7dd3dfb420d1fddd1.tar.gz
pacredir-15952fed8ef5001ba33856c7dd3dfb420d1fddd1.tar.zst
set to error buffer empty
-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) {