dwarves: __tag__has_type_loop has to handle a NULL type (void)

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-09-14 17:39:52 -03:00
parent 3049d6962f
commit b4977b20e0
2 changed files with 6 additions and 1 deletions

View File

@ -50,6 +50,9 @@ int __tag__has_type_loop(const struct tag *self, const struct tag *type,
{
char bbf[2048], *abf = bbf;
if (type == NULL)
return 0;
if (self->type == type->type) {
int printed;

View File

@ -224,7 +224,9 @@ def main(argv):
dirname = args[0]
if len(args) > 1:
fnames = args[1:]
elif o in ('before', 'after', 'ctf'):
elif o in ('-a', '--after',
'-b', '--before',
'-C', '--ctf_encode'):
fnames = listdebugs(dirname)
if o in ('-b', '--before', '-a', '--after'):