[patch] aoutx, slurp_symbol_table

Alan Modra amodra@bigpond.net.au
Fri Jul 27 07:17:00 GMT 2007


On Thu, Jul 26, 2007 at 07:07:41PM -0700, msnyder@sonic.net wrote:
> 	* aoutx.h (slurp_symbol_table): Return if count == 0.

OK.

> +   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)

Remove cached_size != 0 test while you're at it.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list