pdwtags: cu->types_tables can have some NULL slots

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-03-16 15:55:48 -03:00
parent 3ccd3e57b7
commit f25af978bf

View File

@ -50,6 +50,9 @@ static int cu__emit_tags(struct cu *self, void *cookie __unused)
for (i = 1; i < self->types_table.nr_entries; ++i) {
struct tag *tag = self->types_table.entries[i];
if (tag == NULL) /* CTF can have empty slots, see
cu__table_nullify_type_entry */
continue;
emit_tag(tag, i, self);
}
return 0;