PATCH: uninitialized var iosb

Marcus Meissner marcus at jet.franken.de
Wed May 4 07:56:03 CDT 2005


Hi,

Ciao, Marcus

Changelog:
	Initialize iosb.

Index: dlls/winsock/socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.177
diff -u -r1.177 socket.c
--- dlls/winsock/socket.c	28 Apr 2005 18:27:27 -0000	1.177
+++ dlls/winsock/socket.c	4 May 2005 12:55:16 -0000
@@ -1328,7 +1328,7 @@
     DWORD dwflags = 0;
     int len = 0;
     LPWSAOVERLAPPED ovl = HeapAlloc(GetProcessHeap(), 0, sizeof( WSAOVERLAPPED ));
-    IO_STATUS_BLOCK *iosb;
+    IO_STATUS_BLOCK *iosb = NULL;
 
     TRACE("s %d fd %d mode %d\n", s, fd, mode);
     if (!ovl)
-- 



More information about the wine-patches mailing list