diff options
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/section.c b/bfd/section.c index 28eee7f..811d42a 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -1240,7 +1240,7 @@ bfd_make_section_with_flags (bfd *abfd, const char *name, struct section_hash_entry *sh; asection *newsect; - if (abfd->output_has_begun) + if (abfd == NULL || name == NULL || abfd->output_has_begun) { bfd_set_error (bfd_error_invalid_operation); return NULL; |