[Scummvm-cvs-logs] SF.net SVN: scummvm:[33206] scummvm/trunk/engines/scumm/imuse_digi/dimuse. cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Tue Jul 22 17:24:40 CEST 2008


Revision: 33206
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33206&view=rev
Author:   aquadran
Date:     2008-07-22 15:24:39 +0000 (Tue, 22 Jul 2008)

Log Message:
-----------
shutup valgrind warning

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/imuse_digi/dimuse.cpp

Modified: scummvm/trunk/engines/scumm/imuse_digi/dimuse.cpp
===================================================================
--- scummvm/trunk/engines/scumm/imuse_digi/dimuse.cpp	2008-07-22 15:20:27 UTC (rev 33205)
+++ scummvm/trunk/engines/scumm/imuse_digi/dimuse.cpp	2008-07-22 15:24:39 UTC (rev 33206)
@@ -57,8 +57,8 @@
 	for (int l = 0; l < MAX_DIGITAL_TRACKS + MAX_DIGITAL_FADETRACKS; l++) {
 		_track[l] = new Track;
 		assert(_track[l]);
+		memset(_track[l], 0, sizeof(Track));
 		_track[l]->trackId = l;
-		_track[l]->used = false;
 	}
 	_vm->_timer->installTimerProc(timer_handler, 1000000 / _callbackFps, this);
 


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