diff options
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r-- | ld/ldlang.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h index 8cc5cf7..3e3e6a0 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -574,7 +574,7 @@ extern asection *section_for_dot #define LANG_FOR_EACH_INPUT_STATEMENT(statement) \ lang_input_statement_type *statement; \ - for (statement = &file_chain.head->input_statement; \ + for (statement = file_chain.head == NULL ? NULL : &file_chain.head->input_statement; \ statement != NULL; \ statement = statement->next) |