diff options
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r-- | gas/dwarf2dbg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 3b863cd..e58f73a 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -411,6 +411,7 @@ get_filenum (filename, num) { for (i = 1; i < files_in_use; ++i) if (files[i].dir == dir + && files[i].filename && strcmp (file, files[i].filename) == 0) { last_used = i; @@ -1089,6 +1090,8 @@ out_file_list () if (files[i].filename == NULL) { as_bad (_("unassigned file number %ld"), (long) i); + /* Prevent a crash later, particularly for file 1. */ + files[i].filename = ""; continue; } |