From bbbf37d55a3959951604c4be482e9a705a0f86d9 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Tue, 7 Jan 2014 11:30:59 +0100 Subject: [PATCH] curl_xml.c: avoid using uninitalized variable in error message Thanks to @trtrmitya for reporting this. Fixes GH#507 --- src/curl_xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.30.2