summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2011-05-22 08:06:07 +0000
committer smf- <smf-@users.noreply.github.com>2011-05-22 08:06:07 +0000
commitbf7fc842c7779bf779bc8279b5b677f5a87435b3 (patch)
tree8075b56730cd2a2a6738b72c3700a88392ca4801
parent550cd7e8d8bd7f64214302d7650eb0f194c0cab1 (diff)
initialize gatedesc as otherwise the compiler complains. no idea what the author intended, looks like the code is unfinished or bugged. nwm
-rw-r--r--src/emu/cpu/i86/instr286.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/i86/instr286.c b/src/emu/cpu/i86/instr286.c
index ba5710ea57a..1dd122924f2 100644
--- a/src/emu/cpu/i86/instr286.c
+++ b/src/emu/cpu/i86/instr286.c
@@ -335,7 +335,7 @@ static void i80286_code_descriptor(i80286_state *cpustate, UINT16 selector, UINT
cpustate->rights[CS]=RIGHTS(desc);
cpustate->pc=cpustate->base[CS]+offset;
} else { // systemdescriptor
- UINT16 gatedesc[3];
+ UINT16 gatedesc[3]={0,0,0};
UINT16 gatesel = GATESEL(desc);
if (DPL(r) < PMAX(CPL,RPL(selector))) throw TRAP(GENERAL_PROTECTION_FAULT,IDXTBL(selector));
if (!PRES(r)) throw TRAP(SEG_NOT_PRESENT, IDXTBL(selector));
@@ -406,7 +406,7 @@ static void i80286_code_descriptor(i80286_state *cpustate, UINT16 selector, UINT
static void i80286_interrupt_descriptor(i80286_state *cpustate,UINT16 number, int hwint, int error)
{
- UINT16 desc[3], gatedesc[3], gatesel, oldcs, oldip, oldflags;
+ UINT16 desc[3], gatedesc[3]={0,0,0}, gatesel, oldcs, oldip, oldflags;
UINT8 r;
UINT32 addr;