AltairZ80: Fix uninitialized variable (Coverity Scan)
This commit is contained in:
parent
979aec293e
commit
30556c8d78
2 changed files with 2 additions and 2 deletions
|
@ -1180,7 +1180,7 @@ long disasm (unsigned char *data, char *output, int segsize, long offset)
|
||||||
int rep, lock, asize, osize, i, slen, colon;
|
int rep, lock, asize, osize, i, slen, colon;
|
||||||
unsigned char *origdata;
|
unsigned char *origdata;
|
||||||
int works;
|
int works;
|
||||||
insn tmp_ins, ins;
|
insn tmp_ins = { NULL }, ins;
|
||||||
unsigned long goodness, best;
|
unsigned long goodness, best;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -260,7 +260,7 @@ typedef struct extop { /* extended operand */
|
||||||
#define MAXPREFIX 4
|
#define MAXPREFIX 4
|
||||||
|
|
||||||
typedef struct { /* an instruction itself */
|
typedef struct { /* an instruction itself */
|
||||||
/* char *label; not needed */ /* the label defined, or NULL */
|
char *label; /* the label defined, or NULL */
|
||||||
int prefixes[MAXPREFIX]; /* instruction prefixes, if any */
|
int prefixes[MAXPREFIX]; /* instruction prefixes, if any */
|
||||||
int nprefix; /* number of entries in above */
|
int nprefix; /* number of entries in above */
|
||||||
int opcode; /* the opcode - not just the string */
|
int opcode; /* the opcode - not just the string */
|
||||||
|
|
Loading…
Add table
Reference in a new issue