Have bfd_archive_filename() return NULL on NULL input

This commit is contained in:
Nick Clifton
2004-04-22 10:43:34 +00:00
parent fd99574ba5
commit d2f7ecac2c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-04-22 Nick Clifton <nickc@redhat.com>
* bfd.c (bfd_archive_filename): Return NULL on NULL input.
2004-04-22 Peter Barada <peter@the-baradas.com>
* archures.c: Add bfd_mach_mcfv4e to bfd_architecture.

View File

@ -509,7 +509,7 @@ const char *
bfd_archive_filename (bfd *abfd)
{
if (abfd == NULL)
return _("<unknown>");
return NULL;
if (abfd->my_archive)
{