From owner-svn-ports-head@FreeBSD.ORG Thu Jan 2 20:28:46 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 302CC8C7; Thu, 2 Jan 2014 20:28:46 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1C9681FA3; Thu, 2 Jan 2014 20:28:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s02KSjsX070554; Thu, 2 Jan 2014 20:28:45 GMT (envelope-from demon@svn.freebsd.org) Received: (from demon@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s02KSj1Z070553; Thu, 2 Jan 2014 20:28:45 GMT (envelope-from demon@svn.freebsd.org) Message-Id: <201401022028.s02KSj1Z070553@svn.freebsd.org> From: Dmitry Sivachenko Date: Thu, 2 Jan 2014 20:28:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338492 - head/net-mgmt/collectd5/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 20:28:46 -0000 Author: demon Date: Thu Jan 2 20:28:45 2014 New Revision: 338492 URL: http://svnweb.freebsd.org/changeset/ports/338492 Log: 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: head/net-mgmt/collectd5/files/patch-src-curl_xml.c (contents, props changed) Added: head/net-mgmt/collectd5/files/patch-src-curl_xml.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/collectd5/files/patch-src-curl_xml.c Thu Jan 2 20:28:45 2014 (r338492) @@ -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);