From 15952fed8ef5001ba33856c7dd3dfb420d1fddd1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 10 Oct 2016 10:26:59 +0200 Subject: set to error buffer empty --- pacredir.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3-54-g00ecf