Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2014 12:36:13 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r339112 - branches/2014Q1/net-mgmt/collectd5/files
Message-ID:  <201401081236.s08CaD0q066309@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Jan  8 12:36:13 2014
New Revision: 339112
URL: http://svnweb.freebsd.org/changeset/ports/339112

Log:
  MFH: r338492
  
  Fix build with clang (on FreeBSD-10) with curl plugin enabled:
  
  curl_xml.c:617:37: error: variable 'url' is uninitialized when used here
        [-Werror,-Wuninitialized]
             status, db->curl_errbuf, url);
                                      ^~~
  ./plugin.h:342:47: note: expanded from macro 'ERROR'
  #define ERROR(...)   plugin_log (LOG_ERR,     __VA_ARGS__)
                                                ^
  curl_xml.c:610:12: note: initialize the variable 'url' to silence this warning
    char *url;
             ^
              = NULL
  1 error generated.

Added:
  branches/2014Q1/net-mgmt/collectd5/files/patch-src-curl_xml.c
     - copied unchanged from r338492, head/net-mgmt/collectd5/files/patch-src-curl_xml.c
Modified:
Directory Properties:
  branches/2014Q1/   (props changed)

Copied: branches/2014Q1/net-mgmt/collectd5/files/patch-src-curl_xml.c (from r338492, head/net-mgmt/collectd5/files/patch-src-curl_xml.c)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2014Q1/net-mgmt/collectd5/files/patch-src-curl_xml.c	Wed Jan  8 12:36:13 2014	(r339112, copy of r338492, head/net-mgmt/collectd5/files/patch-src-curl_xml.c)
@@ -0,0 +1,11 @@
+--- src/curl_xml.c.orig	2013-08-18 14:24:25.069973000 +0400
++++ src/curl_xml.c	2014-01-03 00:25:17.000000000 +0400
+@@ -607,7 +607,7 @@
+   int status;
+   long rc;
+   char *ptr;
+-  char *url;
++  char *url = NULL;
+ 
+   db->buffer_fill = 0; 
+   status = curl_easy_perform (curl);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401081236.s08CaD0q066309>