[Scummvm-cvs-logs] SF.net SVN: scummvm:[33812] scummvm/trunk/engines/cine/sound.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Wed Aug 13 01:56:14 CEST 2008
Revision: 33812
http://scummvm.svn.sourceforge.net/scummvm/?rev=33812&view=rev
Author: buddha_
Date: 2008-08-12 23:56:13 +0000 (Tue, 12 Aug 2008)
Log Message:
-----------
Hopefully fixes 'Conditional jump or move depends on uninitialised value(s)' Valgrind warning at sound.cpp:611.
Modified Paths:
--------------
scummvm/trunk/engines/cine/sound.cpp
Modified: scummvm/trunk/engines/cine/sound.cpp
===================================================================
--- scummvm/trunk/engines/cine/sound.cpp 2008-08-12 23:44:39 UTC (rev 33811)
+++ scummvm/trunk/engines/cine/sound.cpp 2008-08-12 23:56:13 UTC (rev 33812)
@@ -604,6 +604,7 @@
_instrumentsData[i] = NULL;
char instrument[64];
+ memset(instrument, 0, 64); // Clear the data first
memcpy(instrument, _sfxData + 20 + i * 30, 12);
instrument[63] = '\0';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list