Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Oct 2015 18:26:24 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289074 - head/contrib/elftoolchain/addr2line
Message-ID:  <201510091826.t99IQOUj056383@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Oct  9 18:26:24 2015
New Revision: 289074
URL: https://svnweb.freebsd.org/changeset/base/289074

Log:
  addr2line: initialize die to NULL
  
  GCC on MIPS produced a 'may be used uninitialized' warning after
  r289071.
  
  Reported by:	sbruno
  Pointy hat to:	emaste

Modified:
  head/contrib/elftoolchain/addr2line/addr2line.c

Modified: head/contrib/elftoolchain/addr2line/addr2line.c
==============================================================================
--- head/contrib/elftoolchain/addr2line/addr2line.c	Fri Oct  9 18:23:10 2015	(r289073)
+++ head/contrib/elftoolchain/addr2line/addr2line.c	Fri Oct  9 18:26:24 2015	(r289074)
@@ -228,6 +228,7 @@ translate(Dwarf_Debug dbg, const char* a
 	addr += section_base;
 	lineno = 0;
 	file = unknown;
+	die = NULL;
 	lbuf = NULL;
 	lcount = 0;
 



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