Have bfd_archive_filename() return NULL on NULL input
authorNick Clifton <nickc@redhat.com>
Thu, 22 Apr 2004 10:43:34 +0000 (10:43 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Apr 2004 10:43:34 +0000 (10:43 +0000)
bfd/ChangeLog
bfd/bfd.c

index 5c43097545ba81a5bd95aefa940d68cf97a0f54b..00cc69237c3f41b4b453b6c16ba8213a8f2b14d1 100644 (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.
index 524e7d2af33054ecf5e17a965da64fe6839ab365..f8ed3407637802812f1d5f60926fdaaad803e95d 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -509,7 +509,7 @@ const char *
 bfd_archive_filename (bfd *abfd)
 {
   if (abfd == NULL)
-    return _("<unknown>");
+    return NULL;
   
   if (abfd->my_archive)
     {