Variable lsap_sel must be initialized

Wolfgang Schwotzer wolfgang.schwotzer at gmx.net
Thu Aug 19 15:02:35 CDT 2010


---
 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 f129b08..c2f3a46 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;
-- 
1.7.0.4


--------------080806000502020002010605--



More information about the wine-patches mailing list