aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils/bfd
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-12-20 02:23:44 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-12-20 02:23:44 +0000
commit0558ae2a89f2551734652d424c55ccd1fbb08585 (patch)
treeab29f2f5db1baba6a32a8007e14f4730180ccb39 /contrib/binutils/bfd
parentb1b636d1da985a36543d228b6dbe4eb8396f0693 (diff)
parent855ee8c509184df8c31758b8f2ca9e9d31440489 (diff)
downloadsrc-0558ae2a89f2551734652d424c55ccd1fbb08585.tar.gz
src-0558ae2a89f2551734652d424c55ccd1fbb08585.zip
This commit was generated by cvs2svn to compensate for changes in r88237,
which included commits to RCS files with non-trunk default branches.
Notes
Notes: svn path=/head/; revision=88238
Diffstat (limited to 'contrib/binutils/bfd')
-rw-r--r--contrib/binutils/bfd/syms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/binutils/bfd/syms.c b/contrib/binutils/bfd/syms.c
index 311806e1f6b6..34169ec276e1 100644
--- a/contrib/binutils/bfd/syms.c
+++ b/contrib/binutils/bfd/syms.c
@@ -715,6 +715,8 @@ _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep)
storage = bfd_get_symtab_upper_bound (abfd);
if (storage < 0)
goto error_return;
+ if (storage == 0)
+ return 0;
syms = (asymbol **) bfd_malloc ((size_t) storage);
if (syms == NULL)