aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-26 21:53:35 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-26 21:53:35 +0000
commit2d4f3e92ff96c19987e2e0f79f698604f578adb8 (patch)
tree5ef41ebc5e386966d4cd705c7875125c27bbdcdc /bfd/linker.c
parentac38308c9515c590cf3e80d10259bdcb4eef135f (diff)
downloadgdb-2d4f3e92ff96c19987e2e0f79f698604f578adb8.zip
gdb-2d4f3e92ff96c19987e2e0f79f698604f578adb8.tar.gz
gdb-2d4f3e92ff96c19987e2e0f79f698604f578adb8.tar.bz2
2007-07-26 Michael Snyder <msnyder@access-company.com>
* linker.c (already_linked_newfunc): Check for NULL return from bfd_hash_allocate.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index f547a75..d31752b 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -2948,6 +2948,9 @@ already_linked_newfunc (struct bfd_hash_entry *entry ATTRIBUTE_UNUSED,
ret->entry = NULL;
+ if (ret == NULL)
+ return ret;
+
return &ret->root;
}