initialize match to zero on connect

This commit is contained in:
Douglas Clowes
2013-12-17 16:48:53 +11:00
parent 0266abbd94
commit 57475b623e

View File

@ -422,6 +422,7 @@ void sock_accept(int n)
fdv[num_fds].device = fdv[n].device;
fdv[num_fds].line_len = 0;
fdv[num_fds].state = 0;
fdv[num_fds].match = 0;
fds[num_fds].fd = sock_n;
fds[num_fds].events = POLLIN;
++num_fds;