OSDN Git Service

Have bfd_archive_filename() return NULL on NULL input
authornickc <nickc>
Thu, 22 Apr 2004 10:43:33 +0000 (10:43 +0000)
committernickc <nickc>
Thu, 22 Apr 2004 10:43:33 +0000 (10:43 +0000)
bfd/ChangeLog
bfd/bfd.c

index 5c43097..00cc692 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 524e7d2..f8ed340 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)
     {