summaryrefslogtreecommitdiff
path: root/ev_poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev_poll.c')
-rw-r--r--ev_poll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ev_poll.c b/ev_poll.c
index 4a9efdc..e9f5e51 100644
--- a/ev_poll.c
+++ b/ev_poll.c
@@ -42,6 +42,8 @@
void inline_size
pollidx_init (int *base, int count)
{
+ /* consider using memset (.., -1, ...), which is pratically guarenteed
+ * to work on all systems implementing poll */
while (count--)
*base++ = -1;
}