From: hjl Date: Tue, 5 Nov 2002 21:53:12 +0000 (+0000) Subject: 2002-11-05 H.J. Lu X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=440b4d677a29d5daf2d81926f406ad0286bfbb50;p=pf3gnuchains%2Fsourceware.git 2002-11-05 H.J. Lu * config/tc-mips.c (support_64bit_objects): Check *l before it is freed. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 62a457c496..85da82370b 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-11-04 Danny Smith * config/obj-coff.c (obj-coff-section): Set SEC_DATA and diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 329d1a495f..717078fc2b 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -10161,6 +10161,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++) @@ -10173,8 +10174,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 */