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 | 9d8c6635a4a19aa2dd400247ffb68b9b651cdb8a (patch) | |
tree | 43bed04fa6f253c819298f7ff2ee88c46e0fadb5 /opcodes/crx-dis.c | |
parent | b6e9bb8a6d06a0d4c5478a5a761850323d845a39 (diff) | |
download | gdb-9d8c6635a4a19aa2dd400247ffb68b9b651cdb8a.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 84f24be9552..928b0117c4e 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) |