[ros-diffs] [hbirr] 15871: Preinitialize the Provider to prevent from crashing if no sockets were given.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Sun Jun 12 12:33:30 CEST 2005


Preinitialize the Provider to prevent from crashing if no sockets were
given.
Modified: trunk/reactos/lib/ws2_32/misc/dllmain.c
  _____  

Modified: trunk/reactos/lib/ws2_32/misc/dllmain.c
--- trunk/reactos/lib/ws2_32/misc/dllmain.c	2005-06-12 10:25:49 UTC
(rev 15870)
+++ trunk/reactos/lib/ws2_32/misc/dllmain.c	2005-06-12 10:33:22 UTC
(rev 15871)
@@ -339,7 +339,7 @@

  *     Number of ready socket descriptors, or SOCKET_ERROR if an error
ocurred
  */
 {
-  PCATALOG_ENTRY Provider;
+  PCATALOG_ENTRY Provider = NULL;
   INT Count;
   INT Errno;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050612/f80de3b6/attachment.html


More information about the Ros-diffs mailing list