From 407107d1a97b0ed3187185b95d0f8c945f03a4f4 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Thu, 25 Feb 2010 10:10:07 +0000 Subject: [PATCH] Fix valgrind errors (use of uninitialized values) --- Src/VIC_SC.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/VIC_SC.cpp b/Src/VIC_SC.cpp index 9a2b284..8e2d7a2 100644 --- a/Src/VIC_SC.cpp +++ b/Src/VIC_SC.cpp @@ -152,6 +152,10 @@ MOS6569::MOS6569(C64 *c64, C64Display *disp, MOS6510 *CPU, uint8 *RAM, uint8 *Ch { int i; + is_bad_line = false; + spr_exp_y = 0; + memset(mc_base, 0, sizeof(mc_base)); + // Set pointers matrix_base = 0; char_base = 0;