Fixed warning emitted by some gcc versions for dis.c.

gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
dis.c:41: warning: ‘arg’ may be used uninitialized in this function
This commit is contained in:
Daniel Beer 2010-10-28 14:11:14 +13:00
parent 50f589b05c
commit 3b4989b179
1 changed files with 1 additions and 1 deletions

2
dis.c
View File

@ -38,7 +38,7 @@ static int decode_00xx(const uint8_t *code, address_t offset,
uint16_t op = code[0] | (code[1] << 8); uint16_t op = code[0] | (code[1] << 8);
int subtype = (op >> 4) & 0xf; int subtype = (op >> 4) & 0xf;
int have_arg = 0; int have_arg = 0;
address_t arg; address_t arg = 0;
/* Parameters common to most cases */ /* Parameters common to most cases */
insn->op = MSP430_OP_MOVA; insn->op = MSP430_OP_MOVA;