"Fossies" - the Fresh Open Source Software Archive

Member "ipfire-2.x-2.27-core174/src/patches/collectd/0003-curl_xml.c-avoid-using-uninitalized-variable-in-erro.patch" (7 Apr 2023, 1004 Bytes) of package /linux/misc/ipfire-2.x-2.27-core174.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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
    5  message
    6 
    7 Thanks to @trtrmitya for reporting this. Fixes GH#507
    8 ---
    9  src/curl_xml.c | 6 +++---
   10  1 file changed, 3 insertions(+), 3 deletions(-)
   11 
   12 diff --git a/src/curl_xml.c b/src/curl_xml.c
   13 index 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 -- 
   33 1.9.3
   34