mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 13:38:33 +00:00
Merge pull request #134 from Nooby4Ever/curl-fix
Fixed Curl segmentation fault
This commit is contained in:
commit
6d3c227356
@ -119,9 +119,7 @@ namespace priv {
|
|||||||
headers.h = curl_slist_append(headers.h, ("If-None-Match: " + etag).c_str());
|
headers.h = curl_slist_append(headers.h, ("If-None-Match: " + etag).c_str());
|
||||||
etag.clear();
|
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);
|
res = curl_easy_perform(curl);
|
||||||
if (res == CURLE_OK) {
|
if (res == CURLE_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user