OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d002ce
)
Catch NULL bfd pointers passed to bfd_archive_filename
author
nickc
<nickc>
Thu, 15 Apr 2004 08:48:55 +0000
(08:48 +0000)
committer
nickc
<nickc>
Thu, 15 Apr 2004 08:48:55 +0000
(08:48 +0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/bfd.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index
4c4a541
..
5bd1d74
100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,7
@@
+2004-04-15 Nick Clifton <nickc@redhat.com>
+
+ * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
+
2004-04-15 Alan Modra <amodra@bigpond.net.au>
* elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
diff --git
a/bfd/bfd.c
b/bfd/bfd.c
index
d37a48b
..
59e22aa
100644
(file)
--- a/
bfd/bfd.c
+++ b/
bfd/bfd.c
@@
-512,6
+512,9
@@
DESCRIPTION
const char *
bfd_archive_filename (bfd *abfd)
{
+ if (abfd == NULL)
+ return _("<unknown>");
+
if (abfd->my_archive)
{
static size_t curr = 0;