1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-21 13:05:04 -05:00

A couple of people have pointed out that the local variable

`reading' in this file is not reliably initialised.

[originally from svn r5054]
This commit is contained in:
Simon Tatham 2004-12-31 19:06:20 +00:00
parent c64ad3bb0c
commit b66b93034d

View File

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