[Scummvm-cvs-logs] SF.net SVN: scummvm: [30211] scummvm/trunk/engines/agi/preagi_troll.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Jan 4 00:55:42 CET 2008


Revision: 30211
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30211&view=rev
Author:   fingolfin
Date:     2008-01-03 15:55:42 -0800 (Thu, 03 Jan 2008)

Log Message:
-----------
Fix another -Wuninitialized warnings - n could have been returned w/o having been set first

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi_troll.cpp

Modified: scummvm/trunk/engines/agi/preagi_troll.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_troll.cpp	2008-01-03 23:47:38 UTC (rev 30210)
+++ scummvm/trunk/engines/agi/preagi_troll.cpp	2008-01-03 23:55:42 UTC (rev 30211)
@@ -418,7 +418,7 @@
 }
 
 int Troll::drawRoom(char *menu) {
-	int n;
+	int n = 0;
 	bool contFlag = false;
 
 	if (_currentRoom == 1) {


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