[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-dev] [patch] ai_epsrr.cpp:2643: warning: 'i' might be used uninitialized



Hi,

I am not familiar with the code in question but I think that this patch
should be applied:

--- ai_epsrr.cpp_unused_i.diff begins here ---
Index: Kernel/ai_epsrr.cpp
===================================================================
--- Kernel/ai_epsrr.cpp	(revision 1325)
+++ Kernel/ai_epsrr.cpp	(working copy)
@@ -2639,9 +2639,9 @@
 
 	while (fgets (cbuffer, 1024, fp) != NULL)
 	{
 		char c;
-		INT32 i;
+		INT32 i = 0;
 		cbuffer[1024]=0;
 		do
 		{
 			c=cbuffer[i];
--- ai_epsrr.cpp_unused_i.diff ends here ---

-- 
Vasil Dimov
gro.DSBeerF@dv

Testing can show the presence of bugs, but not their absence.
                -- Edsger W. Dijkstra