]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
A couple of people have pointed out that the local variable
authorSimon Tatham <anakin@pobox.com>
Fri, 31 Dec 2004 19:06:20 +0000 (19:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 31 Dec 2004 19:06:20 +0000 (19:06 +0000)
`reading' in this file is not reliably initialised.

[originally from svn r5054]

windows/winplink.c

index c13669792ae76f16507f05af3f5796132ee82285..602ec7bcbfe28d0858cb92cd976c4d9dfd18a609 100644 (file)
@@ -271,7 +271,7 @@ int main(int argc, char **argv)
     HANDLE handles[4];
     DWORD in_threadid, out_threadid, err_threadid;
     struct input_data idata;
-    int reading;
+    int reading = FALSE;
     int sending;
     int portnumber = -1;
     SOCKET *sklist;
@@ -664,6 +664,7 @@ int main(int argc, char **argv)
                cleanup_exit(1);
            }
            sending = TRUE;
+           reading = TRUE;
        }
 
        if (run_timers(now, &next)) {