From bf7fc842c7779bf779bc8279b5b677f5a87435b3 Mon Sep 17 00:00:00 2001 From: smf- Date: Sun, 22 May 2011 08:06:07 +0000 Subject: [PATCH] initialize gatedesc as otherwise the compiler complains. no idea what the author intended, looks like the code is unfinished or bugged. nwm --- src/emu/cpu/i86/instr286.c | 4 ++-- 1 file 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;