aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-31 22:12:23 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-31 22:12:23 +0000
commit5978fd4ed958fb751f9141248bf833971826b0d0 (patch)
treeeb1dbb8e8c2704698402a6336b322013e2329772 /asterisk.c
parenta19e58fdd5264b1c1d828a46e508a685ad1d4a63 (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 'asterisk.c')
-rwxr-xr-xasterisk.c2
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) {