* dwarf2read.c (dw2_find_symbol_file): Initialize filename before

calling init_cutu_and_read_dies.
This commit is contained in:
Doug Evans 2013-04-30 21:11:50 +00:00
parent 5220199df0
commit a98c29a089
2 changed files with 8 additions and 0 deletions

View file

@ -3465,6 +3465,9 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name)
return per_cu->v.quick->symtab->filename;
}
/* Initialize filename in case there's a problem reading the DWARF,
dw2_get_primary_filename_reader may not get called. */
filename = NULL;
init_cutu_and_read_dies (per_cu, NULL, 0, 0,
dw2_get_primary_filename_reader, &filename);