diff --git a/src/main/main.c b/src/main/main.c index de9c4f310..fcd553bee 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -450,7 +450,7 @@ static int poll_init(struct re *re) if (re->fhsl) return 0; - re->fhsl = mem_zalloc(re->maxfds * sizeof(re->fhsl), NULL); + re->fhsl = mem_zalloc(re->maxfds * sizeof(void *), NULL); if (!re->fhsl) return ENOMEM; break;