diff options
author | Christian Hesse <mail@eworm.de> | 2016-10-10 10:26:59 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-10-10 10:26:59 +0200 |
commit | 15952fed8ef5001ba33856c7dd3dfb420d1fddd1 (patch) | |
tree | 292c8a19783d550c134aa2f76fb6bec55ff6f745 /pacredir.c | |
parent | a102371a873912c8817e1a84910aecb20835a6c4 (diff) | |
download | pacredir-15952fed8ef5001ba33856c7dd3dfb420d1fddd1.tar.gz pacredir-15952fed8ef5001ba33856c7dd3dfb420d1fddd1.tar.zst |
set to error buffer empty
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |