aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-04-22 10:43:34 +0000
committerNick Clifton <nickc@redhat.com>2004-04-22 10:43:34 +0000
commitd2f7ecac2c3c1058a1d07d19dc095eac7170ff7f (patch)
tree47928506f0c4bb4c3d5a87485bb75314439a108c /bfd
parentfd99574ba57795ede14cf8644ab4180facff4f17 (diff)
downloadgdb-d2f7ecac2c3c1058a1d07d19dc095eac7170ff7f.zip
gdb-d2f7ecac2c3c1058a1d07d19dc095eac7170ff7f.tar.gz
gdb-d2f7ecac2c3c1058a1d07d19dc095eac7170ff7f.tar.bz2
Have bfd_archive_filename() return NULL on NULL input
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/bfd.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5c43097..00cc692 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 524e7d2..f8ed340 100644
--- 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)
{