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 /io.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 'io.c')
-rwxr-xr-x | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -165,6 +165,7 @@ int *ast_io_add(struct io_context *ioc, int fd, ast_io_cb callback, short events */ ioc->fds[ioc->fdcnt].fd = fd; ioc->fds[ioc->fdcnt].events = events; + ioc->fds[ioc->fdcnt].revents = 0; ioc->ior[ioc->fdcnt].callback = callback; ioc->ior[ioc->fdcnt].data = data; ioc->ior[ioc->fdcnt].id = (int *)malloc(sizeof(int)); |