1 From bbbf37d55a3959951604c4be482e9a705a0f86d9 Mon Sep 17 00:00:00 2001
2 From: Marc Fournier <marc.fournier@camptocamp.com>
3 Date: Tue, 7 Jan 2014 11:30:59 +0100
4 Subject: [PATCH 03/22] curl_xml.c: avoid using uninitalized variable in error
7 Thanks to @trtrmitya for reporting this. Fixes GH#507
9 src/curl_xml.c | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
12 diff --git a/src/curl_xml.c b/src/curl_xml.c
13 index 75f5cc3..77aee60 100644
16 @@ -551,12 +551,12 @@ static int cx_curl_perform (cx_t *db, CURL *curl) /* {{{ */
20 - db->buffer_fill = 0;
21 + db->buffer_fill = 0;
22 status = curl_easy_perform (curl);
23 if (status != CURLE_OK)
25 - ERROR ("curl_xml plugin: curl_easy_perform failed with status %i: %s (%s)",
26 - status, db->curl_errbuf, url);
27 + ERROR ("curl_xml plugin: curl_easy_perform failed with status %i: %s",
28 + status, db->curl_errbuf);