summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index b3d5e1b..fba82b4 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1072,6 +1072,8 @@ poller_ensure_space (struct poller *self)
return;
self->alloc <<= 1;
+ hard_assert (self->alloc != 0);
+
self->revents = xreallocarray
(self->revents, sizeof *self->revents, self->alloc);
self->info = xreallocarray