diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-26 14:46:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-26 14:46:00 +0000 |
commit | f6dd4781ef99e26500c98e3eb54bf01c7295915f (patch) | |
tree | 43358e36d26b4f068a0cd140b496ff472ce9e8df /opcodes/i386-dis.c | |
parent | fd936b4c69a28e454236c31ec488a1cb8d406d8c (diff) | |
download | gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.zip gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.tar.gz gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.tar.bz2 |
PR binutils/13348
* i386-dis.c (print_insn): Fix testing of array subscript.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r-- | opcodes/i386-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 85b63ea..019a8f5 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -11331,7 +11331,7 @@ print_insn (bfd_vma pc, disassemble_info *info) { /* Too many prefixes or unused REX prefixes. */ for (i = 0; - all_prefixes[i] && i < (int) ARRAY_SIZE (all_prefixes); + i < (int) ARRAY_SIZE (all_prefixes) && all_prefixes[i]; i++) (*info->fprintf_func) (info->stream, "%s", prefix_name (all_prefixes[i], sizeflag)); |