PR23430, Indices misspelled
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index ca22db766c54a0ee8c35199b5110b03d9f7524d8..8fadb5c4b62b82eedb122bc993375480be88d465 100644 (file)
@@ -345,7 +345,7 @@ const struct dwarf_debug_section dwarf_debug_sections[] =
   { NULL,                      NULL },
 };
 
-/* NB/ Numbers in this enum must match up with indicies
+/* NB/ Numbers in this enum must match up with indices
    into the dwarf_debug_sections[] array above.  */
 enum dwarf_debug_section_enum
 {
@@ -1566,7 +1566,7 @@ concat_filename (struct line_info_table *table, unsigned int file)
 {
   char *filename;
 
-  if (file - 1 >= table->num_files)
+  if (table == NULL || file - 1 >= table->num_files)
     {
       /* FILE == 0 means unknown.  */
       if (file)
This page took 0.023325 seconds and 4 git commands to generate.