From b9da616afe44eb7d00a669dad47bc6860e9b23d3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 26 Jul 2007 11:13:59 +0000 Subject: * 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. --- bfd/binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/binary.c') diff --git a/bfd/binary.c b/bfd/binary.c index 38d0cc3..c4aec2b 100644 --- a/bfd/binary.c +++ b/bfd/binary.c @@ -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; -- cgit v1.1