From d2f7ecac2c3c1058a1d07d19dc095eac7170ff7f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 22 Apr 2004 10:43:34 +0000 Subject: [PATCH] Have bfd_archive_filename() return NULL on NULL input --- bfd/ChangeLog | 4 ++++ bfd/bfd.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.30.2