[Scummvm-cvs-logs] SF.net SVN: scummvm: [24209] scummvm/trunk/engines/agos/string.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sun Oct 8 17:46:28 CEST 2006


Revision: 24209
          http://svn.sourceforge.net/scummvm/?rev=24209&view=rev
Author:   aquadran
Date:     2006-10-08 08:46:23 -0700 (Sun, 08 Oct 2006)

Log Message:
-----------
fixed potentially uninitialized local variable 'x'

Modified Paths:
--------------
    scummvm/trunk/engines/agos/string.cpp

Modified: scummvm/trunk/engines/agos/string.cpp
===================================================================
--- scummvm/trunk/engines/agos/string.cpp	2006-10-08 15:35:20 UTC (rev 24208)
+++ scummvm/trunk/engines/agos/string.cpp	2006-10-08 15:46:23 UTC (rev 24209)
@@ -615,7 +615,7 @@
 uint16 AGOSEngine::checkFit(char *Ptr, int width, int lines) {
 	int countw = 0;
 	int countl = 0;
-	char *x;
+	char *x = NULL;
 	while (*Ptr) {
 		if (*Ptr == '\n')
 			return 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