From a7f7b90aee9569817da161f1673584da2495b61e Mon Sep 17 00:00:00 2001 From: David Turner Date: Sun, 23 Jan 2011 23:25:34 +0000 Subject: SCI: Fixed possible use of uninitialized variable in SCI Script Debugger. svn-id: r55487 --- engines/sci/engine/scriptdebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index f1d08646d1..184f81bb99 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -70,7 +70,7 @@ reg_t disassemble(EngineState *s, reg_t pos, bool printBWTag, bool printBytecode const byte *scr; int scr_size; reg_t retval = make_reg(pos.segment, pos.offset + 1); - uint16 param_value; + uint16 param_value = 0xffff; // Suppress GCC warning by setting default value, chose value as invalid to getKernelName etc. int i = 0; Kernel *kernel = g_sci->getKernel(); -- cgit v1.2.3