[Scummvm-cvs-logs] SF.net SVN: scummvm:[33813] scummvm/branches/branch-0-12-0/engines/cine/ sound.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Wed Aug 13 02:10:01 CEST 2008


Revision: 33813
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33813&view=rev
Author:   buddha_
Date:     2008-08-13 00:10:00 +0000 (Wed, 13 Aug 2008)

Log Message:
-----------
Backport of r33812: Hopefully fixes 'Conditional jump or move depends on uninitialised value(s)' Valgrind warning.

Modified Paths:
--------------
    scummvm/branches/branch-0-12-0/engines/cine/sound.cpp

Modified: scummvm/branches/branch-0-12-0/engines/cine/sound.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/cine/sound.cpp	2008-08-12 23:56:13 UTC (rev 33812)
+++ scummvm/branches/branch-0-12-0/engines/cine/sound.cpp	2008-08-13 00:10:00 UTC (rev 33813)
@@ -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