File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------- *
2
2
*
3
- * Copyright 1996-2016 The NASM Authors - All Rights Reserved
3
+ * Copyright 1996-2022 The NASM Authors - All Rights Reserved
4
4
* See the file AUTHORS included with the NASM distribution for
5
5
* the specific copyright holders.
6
6
*
@@ -936,7 +936,7 @@ static void ieee_write_file(void)
936
936
* Write the section headers
937
937
*/
938
938
seg = seghead ;
939
- if (!debuginfo && !strcmp (seg -> name , "??LINE" ))
939
+ if (!debuginfo && seg && !strcmp (seg -> name , "??LINE" ))
940
940
seg = seg -> next ;
941
941
while (seg ) {
942
942
char buf [256 ];
@@ -971,7 +971,7 @@ static void ieee_write_file(void)
971
971
/*
972
972
* write the start address if there is one
973
973
*/
974
- if (ieee_entry_seg ) {
974
+ if (ieee_entry_seg && seghead ) {
975
975
for (seg = seghead ; seg ; seg = seg -> next )
976
976
if (seg -> index == ieee_entry_seg )
977
977
break ;
@@ -1084,7 +1084,7 @@ static void ieee_write_file(void)
1084
1084
* put out section data;
1085
1085
*/
1086
1086
seg = seghead ;
1087
- if (!debuginfo && !strcmp (seg -> name , "??LINE" ))
1087
+ if (!debuginfo && seg && !strcmp (seg -> name , "??LINE" ))
1088
1088
seg = seg -> next ;
1089
1089
while (seg ) {
1090
1090
if (seg -> currentpos ) {
You can’t perform that action at this time.
0 commit comments