]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/collectd/0003-curl_xml.c-avoid-using-uninitalized-variable-in-erro.patch
pakfire: use correct tree on x86_64.
[ipfire-2.x.git] / src / patches / collectd / 0003-curl_xml.c-avoid-using-uninitalized-variable-in-erro.patch
CommitLineData
2056dd30
AM
1From bbbf37d55a3959951604c4be482e9a705a0f86d9 Mon Sep 17 00:00:00 2001
2From: Marc Fournier <marc.fournier@camptocamp.com>
3Date: Tue, 7 Jan 2014 11:30:59 +0100
4Subject: [PATCH 03/22] curl_xml.c: avoid using uninitalized variable in error
5 message
6
7Thanks to @trtrmitya for reporting this. Fixes GH#507
8---
9 src/curl_xml.c | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
11
12diff --git a/src/curl_xml.c b/src/curl_xml.c
13index 75f5cc3..77aee60 100644
14--- a/src/curl_xml.c
15+++ b/src/curl_xml.c
16@@ -551,12 +551,12 @@ static int cx_curl_perform (cx_t *db, CURL *curl) /* {{{ */
17 char *ptr;
18 char *url;
19
20- db->buffer_fill = 0;
21+ db->buffer_fill = 0;
22 status = curl_easy_perform (curl);
23 if (status != CURLE_OK)
24 {
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);
29 return (-1);
30 }
31
32--
331.9.3
34