From: Daniel Jacobowitz Date: Tue, 5 Nov 2002 22:03:43 +0000 (+0000) Subject: * config/tc-mips.c (support_64bit_objects): Check *l before it X-Git-Tag: binutils-2_13_1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52381640e57f25346294c3e7c312479d1b9f153c;p=thirdparty%2Fbinutils-gdb.git * config/tc-mips.c (support_64bit_objects): Check *l before it is freed. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 6aafb0417fc..6269078cb47 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-05 H.J. Lu + + * config/tc-mips.c (support_64bit_objects): Check *l before it + is freed. + 2002-10-31 David O'Brien * config/tc-ia64.c: Cast dwarf2_directive_file to int. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 34a44b8933e..c844fd6bf10 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -9904,6 +9904,7 @@ md_number_to_chars (buf, val, n) static int support_64bit_objects(void) { const char **list, **l; + int yes; list = bfd_target_list (); for (l = list; *l != NULL; l++) @@ -9916,8 +9917,9 @@ static int support_64bit_objects(void) || strcmp (*l, "elf64-littlemips") == 0) #endif break; + yes = (*l != NULL); free (list); - return (*l != NULL); + return yes; } #endif /* OBJ_ELF */