aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSean Keys <skeys@ipdatasys.com>2012-05-15 18:34:23 +0000
committerSean Keys <skeys@ipdatasys.com>2012-05-15 18:34:23 +0000
commit43a028780f9dfc8478a438df6485041462173740 (patch)
tree0ea156df3b390e0fcea50946d95b676a162a22ff /gas
parent588ae58cd240954b57008c7796540314d85ac580 (diff)
downloadgdb-43a028780f9dfc8478a438df6485041462173740.zip
gdb-43a028780f9dfc8478a438df6485041462173740.tar.gz
gdb-43a028780f9dfc8478a438df6485041462173740.tar.bz2
Rewrote a loop that caused a seg fault on Windows systems.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-xgate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-xgate.c b/gas/config/tc-xgate.c
index 954acdc..cca049c 100644
--- a/gas/config/tc-xgate.c
+++ b/gas/config/tc-xgate.c
@@ -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++;