diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-31 22:12:23 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-31 22:12:23 +0000 |
commit | 5978fd4ed958fb751f9141248bf833971826b0d0 (patch) | |
tree | eb1dbb8e8c2704698402a6336b322013e2329772 /channel.c | |
parent | a19e58fdd5264b1c1d828a46e508a685ad1d4a63 (diff) |
ensure revents fields are initialized before calling poll()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6476 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1246,6 +1246,7 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds, if (c[x]->fds[y] > -1) { pfds[max].fd = c[x]->fds[y]; pfds[max].events = POLLIN | POLLPRI; + pfds[max].revents = 0; max++; } } @@ -1255,6 +1256,7 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds, if (fds[x] > -1) { pfds[max].fd = fds[x]; pfds[max].events = POLLIN | POLLPRI; + pfds[max].revents = 0; max++; } } |