Unitialised variable

Jakob Eriksson jakob at vmlinux.org
Mon Sep 22 20:09:06 CDT 2003


Well, there you go.  "c" should have a know value at least, so I set it 
to 0.
-------------- next part --------------
Index: console.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/console.c,v
retrieving revision 1.2
diff -u -r1.2 console.c
--- console.c	21 Jun 2003 02:07:10 -0000	1.2
+++ console.c	23 Sep 2003 01:06:38 -0000
@@ -70,7 +70,7 @@
 
 static void testCursor(HANDLE hCon, COORD sbSize)
 {
-    COORD		c;
+    COORD		c = 0;
     
     ok(SetConsoleCursorPosition(0, c) == 0, "No handle");
     ok(GetLastError() == ERROR_INVALID_HANDLE, "GetLastError: expecting %u got %lu",


More information about the wine-patches mailing list