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:
parent
3a0f0df2e5
commit
91a865bd8f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue