From dbf37d558402f31ce8237e33fef487bc0e2d90a0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 23 Feb 2005 11:53:31 +0000 Subject: [PATCH] (make_instruction): Move argument structure into inner scope and ensure that all of its fields are initialised before they are used. --- opcodes/ChangeLog | 6 ++++++ opcodes/crx-dis.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index bd3f4987d..b91bc1e3c 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 84f24be95..928b0117c 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) -- 2.11.4.GIT