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
/
write_http.c
diff --git
a/src/write_http.c
b/src/write_http.c
index
e08594c
..
62c73b0
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-88,7
+88,7
@@
static int wh_send_buffer (wh_callback_t *cb) /* {{{ */
curl_easy_setopt (cb->curl, CURLOPT_POSTFIELDS, cb->send_buffer);
status = curl_easy_perform (cb->curl);
- if (status !=
0
)
+ if (status !=
CURLE_OK
)
{
ERROR ("write_http plugin: curl_easy_perform failed with "
"status %i: %s",