1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

uxnet.c: initialize atmark variable

GCC 5 does not trace control flow graph and claims that the variable may
be used uninitialized. GCC 7 does not have this bug though.
This commit is contained in:
Pavel I. Kryukov 2018-11-03 20:04:14 +03:00 committed by Simon Tatham
parent c5895ec292
commit 80db674648

View File

@ -1268,7 +1268,7 @@ static void net_select_result(int fd, int event)
int ret;
char buf[20480]; /* nice big buffer for plenty of speed */
NetSocket *s;
bool atmark;
bool atmark = true;
/* Find the Socket structure */
s = find234(sktree, &fd, cmpforsearch);