Rewrote a loop that caused a seg fault on Windows systems.
authorSean Keys <skeys@ipdatasys.com>
Tue, 15 May 2012 18:34:23 +0000 (18:34 +0000)
committerSean Keys <skeys@ipdatasys.com>
Tue, 15 May 2012 18:34:23 +0000 (18:34 +0000)
gas/config/tc-xgate.c

index 954acdc367d7308992aa19b3bc047ef9093ff4e7..cca049c46c108e03dfe79da196fa0c56bd3ae231 100644 (file)
@@ -341,7 +341,7 @@ md_begin (void)
       prev_op_name = op_handles[j].name;
     }
 
-  while (op_handles->name)
+  for (i = 1; i < (int)number_of_handle_rows; i++)
     {
       hash_insert (xgate_hash, op_handles->name, (char *) op_handles);
       op_handles++;