Wolfgang Schwotzer : ws2_32: Initialize variable lsap_sel.

Alexandre Julliard julliard at winehq.org
Fri Aug 20 10:19:12 CDT 2010


Module: wine
Branch: master
Commit: 6d5aaaa5e0d1fd3277906d0f711f784d6fe4da17
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6d5aaaa5e0d1fd3277906d0f711f784d6fe4da17

Author: Wolfgang Schwotzer <wolfgang.schwotzer at gmx.net>
Date:   Thu Aug 19 22:02:35 2010 +0200

ws2_32: Initialize variable lsap_sel.

---

 dlls/ws2_32/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index c226fda..acd3f6e 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -1190,7 +1190,7 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
         uin->sir_family = AF_IRDA;
         if (!strncmp( win->irdaServiceName, "LSAP-SEL", strlen( "LSAP-SEL" ) ))
         {
-            unsigned int lsap_sel;
+            unsigned int lsap_sel = 0;
 
             sscanf( win->irdaServiceName, "LSAP-SEL%u", &lsap_sel );
             uin->sir_lsap_sel = lsap_sel;




More information about the wine-cvs mailing list