From: Simon Tatham Date: Fri, 31 Dec 2004 19:06:20 +0000 (+0000) Subject: A couple of people have pointed out that the local variable X-Git-Tag: 0.58~264 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b66b93034d0e62d7202f7f4a454930e326dacc4b;p=PuTTY.git A couple of people have pointed out that the local variable `reading' in this file is not reliably initialised. [originally from svn r5054] --- diff --git a/windows/winplink.c b/windows/winplink.c index c1366979..602ec7bc 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -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)) {