projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2391b9
)
curl_xml.c: avoid using uninitalized variable in error message
author
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 7 Jan 2014 10:30:59 +0000
(11:30 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 7 Jan 2014 10:48:50 +0000
(11:48 +0100)
Thanks to @trtrmitya for reporting this. Fixes GH#507
src/curl_xml.c
patch
|
blob
|
history
diff --git
a/src/curl_xml.c
b/src/curl_xml.c
index
75f5cc3
..
77aee60
100644
(file)
--- a/
src/curl_xml.c
+++ b/
src/curl_xml.c
@@
-551,12
+551,12
@@
static int cx_curl_perform (cx_t *db, CURL *curl) /* {{{ */
char *ptr;
char *url;
- db->buffer_fill = 0;
+ db->buffer_fill = 0;
status = curl_easy_perform (curl);
if (status != CURLE_OK)
{
- ERROR ("curl_xml plugin: curl_easy_perform failed with status %i: %s
(%s)
",
- status, db->curl_errbuf
, url
);
+ ERROR ("curl_xml plugin: curl_easy_perform failed with status %i: %s",
+ status, db->curl_errbuf);
return (-1);
}