diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-31 22:12:23 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-31 22:12:23 +0000 |
commit | 050d6c7d34bfa331f5033294ddd7c96b76ab8878 (patch) | |
tree | eb1dbb8e8c2704698402a6336b322013e2329772 /asterisk.c | |
parent | b67fced7aeaabec9364b4711bd790ff52336a5d4 (diff) |
ensure revents fields are initialized before calling poll()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index d50499dcf..d6a41b506 100755 --- a/asterisk.c +++ b/asterisk.c @@ -436,8 +436,10 @@ static void *netconsole(void *vconsole) for(;;) { fds[0].fd = con->fd; fds[0].events = POLLIN; + fds[0].revents = 0; fds[1].fd = con->p[0]; fds[1].events = POLLIN; + fds[1].revents = 0; res = poll(fds, 2, -1); if (res < 0) { |