[ros-diffs] [weiden] 17593: fixed uninitialized variable warning
weiden at svn.reactos.com
weiden at svn.reactos.com
Mon Aug 29 22:06:46 CEST 2005
fixed uninitialized variable warning
Modified: trunk/reactos/subsys/system/cmd/filecomp.c
_____
Modified: trunk/reactos/subsys/system/cmd/filecomp.c
--- trunk/reactos/subsys/system/cmd/filecomp.c 2005-08-29 19:09:41 UTC
(rev 17592)
+++ trunk/reactos/subsys/system/cmd/filecomp.c 2005-08-29 20:06:43 UTC
(rev 17593)
@@ -572,7 +572,7 @@
no quote at the END of the full name */
FindPrefixAndSuffix(str,szPrefix,szBaseWord);
/* Strip quotes */
- while(i < _tcslen(szBaseWord)+1)
+ for(i = 0; i < _tcslen(szBaseWord); )
{
if(szBaseWord[i] == _T('\"'))
memmove(&szBaseWord[i],&szBaseWord[i +
1], _tcslen(&szBaseWord[i]) * sizeof(TCHAR));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050829/5c473b86/attachment.html
More information about the Ros-diffs
mailing list