1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-05 05:28:32 +00:00

Merge pull request #134 from Nooby4Ever/curl-fix

Fixed Curl segmentation fault
This commit is contained in:
Brenden Matthews 2015-08-24 08:07:54 -07:00
commit 6d3c227356

View File

@ -119,9 +119,7 @@ namespace priv {
headers.h = curl_slist_append(headers.h, ("If-None-Match: " + etag).c_str());
etag.clear();
}
if (headers.h) {
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers.h);
}
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers.h);
res = curl_easy_perform(curl);
if (res == CURLE_OK) {