diff options
author | max <max@tclers.tk> | 2014-03-05 13:12:13 (GMT) |
---|---|---|
committer | max <max@tclers.tk> | 2014-03-05 13:12:13 (GMT) |
commit | bf23be680c6a9233bd70707a05513b31b047d158 (patch) | |
tree | d54c4910398041416822c17d8971452e50738988 /win | |
parent | 60f72ecdaf9f585eb8210a95d43969c20ede5329 (diff) | |
download | tcl-bf23be680c6a9233bd70707a05513b31b047d158.zip tcl-bf23be680c6a9233bd70707a05513b31b047d158.tar.gz tcl-bf23be680c6a9233bd70707a05513b31b047d158.tar.bz2 |
avoid warnings about uninitialized infoPtr in DEBUG
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinSock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 64b2fc9..f06aad1 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -726,7 +726,7 @@ SocketEventProc( int flags) /* Flags that indicate what events to handle, * such as TCL_FILE_EVENTS. */ { - SocketInfo *infoPtr; + SocketInfo *infoPtr = NULL; /* DEBUG */ SocketEvent *eventPtr = (SocketEvent *) evPtr; int mask = 0, events; ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); @@ -2578,7 +2578,7 @@ SocketProc( { int event, error; SOCKET socket; - SocketInfo *infoPtr; + SocketInfo *infoPtr = NULL; /* DEBUG */ TcpFdList *fds = NULL; ThreadSpecificData *tsdPtr = (ThreadSpecificData *) #ifdef _WIN64 |