2007-07-25 Michael Snyder <msnyder@access-company.com>
[deliverable/binutils-gdb.git] / bfd / coffgen.c
index 7430cf6a760f642cd352380c2c766d52d8e9e610..f4f97b3f0d798f853a6a9b61cb7e7bd4057e068c 100644 (file)
@@ -1444,9 +1444,11 @@ _bfd_coff_get_external_symbols (bfd *abfd)
   symesz = bfd_coff_symesz (abfd);
 
   size = obj_raw_syment_count (abfd) * symesz;
+  if (size == 0)
+    return TRUE;
 
   syms = bfd_malloc (size);
-  if (syms == NULL && size != 0)
+  if (syms == NULL)
     return FALSE;
 
   if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0
This page took 0.024553 seconds and 4 git commands to generate.