* srec.c (srec_canonicalize_symtab): Don't alloc when symcount

is zero.  Correct return value on error.
	* mmo.c (mmo_canonicalize_symtab): Likewise.
	* binary.c (binary_canonicalize_symtab) Correct return on error.
This commit is contained in:
Alan Modra 2007-07-26 11:13:59 +00:00
parent c2c966314b
commit b9da616afe
4 changed files with 14 additions and 7 deletions

View file

@ -169,7 +169,7 @@ binary_canonicalize_symtab (bfd *abfd, asymbol **alocation)
syms = bfd_alloc (abfd, amt);
if (syms == NULL)
return 0;
return -1;
/* Start symbol. */
syms[0].the_bfd = abfd;