dwarf loader: Initialize tag->node

So that we don't have false asserts at tag__delete thinking the tag is in
some list.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2010-11-20 22:09:05 -02:00
parent 3a0f0df2e5
commit 91a865bd8f
1 changed files with 2 additions and 0 deletions

View File

@ -358,6 +358,8 @@ static void tag__init(struct tag *self, struct cu *cu, Dwarf_Die *die)
dwarf_decl_line(die, &decl_line);
dtag->decl_line = decl_line;
}
INIT_LIST_HEAD(&self->node);
}
static struct tag *tag__new(Dwarf_Die *die, struct cu *cu)