[Scummvm-cvs-logs] SF.net SVN: scummvm:[36031] scummvm/trunk/engines/made/database.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Sat Jan 24 06:02:08 CET 2009


Revision: 36031
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36031&view=rev
Author:   buddha_
Date:     2009-01-24 05:02:08 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
Initialize variables that might not be initialized but still used later on line 422 in a debug function call (Fixes MSVC's warnings about 'potentially uninitialized local variable').

Modified Paths:
--------------
    scummvm/trunk/engines/made/database.cpp

Modified: scummvm/trunk/engines/made/database.cpp
===================================================================
--- scummvm/trunk/engines/made/database.cpp	2009-01-24 01:29:52 UTC (rev 36030)
+++ scummvm/trunk/engines/made/database.cpp	2009-01-24 05:02:08 UTC (rev 36031)
@@ -389,8 +389,8 @@
 	if (strncmp(header, "ADVSYS", 6))
 		warning ("Unexpected database header, expected ADVSYS");
 
-	uint32 textOffs, objectsOffs, objectsSize, textSize;
-	uint16 objectCount, varObjectCount;
+	uint32 textOffs = 0, objectsOffs = 0, objectsSize = 0, textSize;
+	uint16 objectCount = 0, varObjectCount = 0;
 
 	sourceS.readUint16LE(); // skip sub-version
 	sourceS.skip(18); // skip program name


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