From: Nick Clifton Date: Thu, 22 Apr 2004 10:43:34 +0000 (+0000) Subject: Have bfd_archive_filename() return NULL on NULL input X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2f7ecac2c3c1058a1d07d19dc095eac7170ff7f;p=binutils-gdb.git Have bfd_archive_filename() return NULL on NULL input --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5c43097545b..00cc69237c3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2004-04-22 Nick Clifton + + * bfd.c (bfd_archive_filename): Return NULL on NULL input. + 2004-04-22 Peter Barada * archures.c: Add bfd_mach_mcfv4e to bfd_architecture. diff --git a/bfd/bfd.c b/bfd/bfd.c index 524e7d2af33..f8ed3407637 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -509,7 +509,7 @@ const char * bfd_archive_filename (bfd *abfd) { if (abfd == NULL) - return _(""); + return NULL; if (abfd->my_archive) {