From 6d5aaaa5e0d1fd3277906d0f711f784d6fe4da17 Mon Sep 17 00:00:00 2001 From: Wolfgang Schwotzer Date: Thu, 19 Aug 2010 22:02:35 +0200 Subject: [PATCH] ws2_32: Initialize variable lsap_sel. --- dlls/ws2_32/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index c226fda713c..acd3f6e7085 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;