(make_instruction): Move argument structure into inner scope and ensure that
all of its fields are initialised before they are used.
This commit is contained in:
parent
abc0f8d0f2
commit
ec36c4a4d6
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-02-23 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* 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 <amodra@bigpond.net.au>
|
||||
|
||||
* arc-ext.c: Warning fixes.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue