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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to