aboutsummaryrefslogtreecommitdiff
path: root/opcodes/crx-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-23 11:53:31 +0000
committerNick Clifton <nickc@redhat.com>2005-02-23 11:53:31 +0000
commitec36c4a4d6de4c4d4d2e685a583b91cfe8fb26ff (patch)
tree5aaa045951e58a0da7b750895ef0d286729965ce /opcodes/crx-dis.c
parentabc0f8d0f2b686700bda26a5c657050c20820a1d (diff)
downloadgdb-ec36c4a4d6de4c4d4d2e685a583b91cfe8fb26ff.zip
gdb-ec36c4a4d6de4c4d4d2e685a583b91cfe8fb26ff.tar.gz
gdb-ec36c4a4d6de4c4d4d2e685a583b91cfe8fb26ff.tar.bz2
(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.c3
1 files changed, 2 insertions, 1 deletions
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)