summaryrefslogtreecommitdiff
path: root/bfd/aoutx.h
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-27 19:04:39 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-27 19:04:39 +0000
commitaea2c309f9525fd8670bc153fa0f348f6de9d4bf (patch)
tree93feac05af78d28501bfc97233fbf5fe4deee1f4 /bfd/aoutx.h
parent01bd68bbc0ac5b5eca5101b4916d532e448dc0fb (diff)
downloadbinutils-redhat-aea2c309f9525fd8670bc153fa0f348f6de9d4bf.tar.gz
2007-07-27 Michael Snyder <msnyder@access-company.com>
* aoutx.h (slurp_symbol_table): Return if count == 0.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r--bfd/aoutx.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index e07d7bef39..af7d45be3a 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -1739,9 +1739,12 @@ NAME (aout, slurp_symbol_table) (bfd *abfd)
return FALSE;
cached_size = obj_aout_external_sym_count (abfd);
+ if (cached_size == 0)
+ return TRUE; /* Nothing to do. */
+
cached_size *= sizeof (aout_symbol_type);
cached = bfd_zmalloc (cached_size);
- if (cached == NULL && cached_size != 0)
+ if (cached == NULL)
return FALSE;
/* Convert from external symbol information to internal. */