[Scummvm-cvs-logs] scummvm master -> 6a8fc83f427a450c98fb9ecddbacbc823f7efac4

eriktorbjorn eriktorbjorn at telia.com
Wed Jan 2 22:07:37 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
6a8fc83f42 TOLTECS: Silence Valgrind warnings


Commit: 6a8fc83f427a450c98fb9ecddbacbc823f7efac4
    https://github.com/scummvm/scummvm/commit/6a8fc83f427a450c98fb9ecddbacbc823f7efac4
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2013-01-02T13:05:13-08:00

Commit Message:
TOLTECS: Silence Valgrind warnings

At the very least, _mainPalette[] was being used (partly?)
uninitialised in buildColorTransTable(), causing lots of warnings.

Changed paths:
    engines/toltecs/palette.cpp



diff --git a/engines/toltecs/palette.cpp b/engines/toltecs/palette.cpp
index c88d80e..b93bb8b 100644
--- a/engines/toltecs/palette.cpp
+++ b/engines/toltecs/palette.cpp
@@ -32,6 +32,8 @@ namespace Toltecs {
 Palette::Palette(ToltecsEngine *vm) : _vm(vm) {
 	clearFragments();
 
+	memset(_mainPalette, 0, sizeof(_mainPalette));
+	memset(_animPalette, 0, sizeof(_animPalette));
 	memset(_colorTransTable, 0, sizeof(_colorTransTable));
 }
 






More information about the Scummvm-git-logs mailing list