projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
curl_xml plugin: Check for a curl_easy_perform() error first
[collectd.git]
/
src
/
curl.c
diff --git
a/src/curl.c
b/src/curl.c
index
39d8e02
..
3899aaa
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-618,7
+618,7
@@
static int cc_read_page (web_page_t *wp) /* {{{ */
wp->buffer_fill = 0;
status = curl_easy_perform (wp->curl);
- if (status !=
0
)
+ if (status !=
CURLE_OK
)
{
ERROR ("curl plugin: curl_easy_perform failed with staus %i: %s",
status, wp->curl_errbuf);