diff options
author | Nick Clifton <nickc@redhat.com> | 2005-02-23 11:53:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-02-23 11:53:31 +0000 |
commit | dbf37d558402f31ce8237e33fef487bc0e2d90a0 (patch) | |
tree | 11d9aa74c97aaf18a987c14bd87423f8907d34f9 /opcodes/crx-dis.c | |
parent | 0301468ef5b09f569f3b967eb91c03fe7906da29 (diff) | |
download | binutils-redhat-dbf37d558402f31ce8237e33fef487bc0e2d90a0.tar.gz |
(make_instruction): Move argument structure into inner scope and ensure that
all of its fields are initialised before they are used.
Diffstat (limited to 'opcodes/crx-dis.c')
-rw-r--r-- | opcodes/crx-dis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index 84f24be955..928b0117c4 100644 --- a/opcodes/crx-dis.c +++ b/opcodes/crx-dis.c @@ -655,10 +655,11 @@ make_instruction (void) { int i; unsigned int shift; - argument a; for (i = 0; i < currInsn.nargs; i++) { + argument a = { 0 }; + a.type = getargtype (instruction->operands[i].op_type); if (instruction->operands[i].op_type == cst4 || instruction->operands[i].op_type == rbase_dispu4) |