Possible crash in select_loop() fixed.

This commit is contained in:
Ulrich Weigand 1999-05-04 16:51:30 +00:00 committed by Alexandre Julliard
parent 70b2e383a0
commit 017d22126b
1 changed files with 6 additions and 1 deletions

View File

@ -186,7 +186,12 @@ void select_loop(void)
int event = 0;
if (FD_ISSET( i, &write )) event |= WRITE_EVENT;
if (FD_ISSET( i, &read )) event |= READ_EVENT;
if (event) users[i]->ops->event( i, event, users[i]->private );
/* Note: users[i] might be NULL here, because an event routine
called in an earlier pass of this loop might have removed
the current user ... */
if (event && users[i])
users[i]->ops->event( i, event, users[i]->private );
}
}
}