From: Marc Fournier Date: Tue, 7 Jan 2014 10:30:59 +0000 (+0100) Subject: curl_xml.c: avoid using uninitalized variable in error message X-Git-Tag: collectd-5.4.1~3^2^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bbbf37d55a3959951604c4be482e9a705a0f86d9;p=collectd.git curl_xml.c: avoid using uninitalized variable in error message Thanks to @trtrmitya for reporting this. Fixes GH#507 --- diff --git a/src/curl_xml.c b/src/curl_xml.c index 75f5cc33..77aee60b 100644 --- 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); }