]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-mips.c (support_64bit_objects): Check *l before it
authorDaniel Jacobowitz <drow@false.org>
Tue, 5 Nov 2002 22:03:43 +0000 (22:03 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 5 Nov 2002 22:03:43 +0000 (22:03 +0000)
        is freed.

gas/ChangeLog
gas/config/tc-mips.c

index 6aafb0417fc75d44a8756bb35aac26ea008d4b2f..6269078cb47053894c52fd5bcd7b09352c055116 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-05  H.J. Lu <hjl@gnu.org>
+
+       * config/tc-mips.c (support_64bit_objects): Check *l before it
+       is freed.
+
 2002-10-31  David O'Brien  <obrien@FreeBSD.org>
 
        * config/tc-ia64.c: Cast dwarf2_directive_file to int.
index 34a44b8933e6850c7bf86cec59219289e1a902ad..c844fd6bf105644b400c6409c468600915325701 100644 (file)
@@ -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 */