]> granicus.if.org Git - yasm/commitdiff
* dwarf2-info.c (yasm_dwarf2__generate_info): Fully initialize second debug_abbrev...
authorPeter Johnson <peter@tortall.net>
Sun, 12 Feb 2006 04:00:10 +0000 (04:00 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 12 Feb 2006 04:00:10 +0000 (04:00 -0000)
on free.

svn path=/trunk/yasm/; revision=1383

modules/dbgfmts/dwarf2/dwarf2-info.c

index 039021dff2657a6db54a385906217a142b4b3770..b961ff68a2e36d5ddbe565c3ce66a4f2f639a38b 100644 (file)
@@ -374,6 +374,9 @@ yasm_dwarf2__generate_info(yasm_dbgfmt_dwarf2 *dbgfmt_dwarf2,
     abbrev = yasm_xmalloc(sizeof(dwarf2_abbrev));
     abc = yasm_bc_create_common(&dwarf2_abbrev_bc_callback, abbrev, 0);
     abbrev->id = 0;
+    abbrev->tag = 0;
+    abbrev->has_children = 0;
+    STAILQ_INIT(&abbrev->attrs);
     abc->len = 1;
     yasm_dwarf2__append_bc(debug_abbrev, abc);