From: Nick Clifton Date: Wed, 23 Feb 2005 11:53:31 +0000 (+0000) Subject: (make_instruction): Move argument structure into inner scope and ensure that X-Git-Tag: binutils-2_16-branchpoint~161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec36c4a4d6de4c4d4d2e685a583b91cfe8fb26ff;p=external%2Fbinutils.git (make_instruction): Move argument structure into inner scope and ensure that all of its fields are initialised before they are used. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index bd3f498..b91bc1e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2005-02-23 Nick Clifton + + * crx-dis.c (make_instruction): Move argument structure into inner + scope and ensure that all of its fields are initialised before + they are used. + 2005-02-22 Alan Modra * arc-ext.c: Warning fixes. diff --git a/opcodes/crx-dis.c b/opcodes/crx-dis.c index 84f24be..928b011 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)