Skip to content

Commit

Permalink
use void pointer size
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Sep 4, 2023
1 parent 6ff64bc commit c5b4bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5b4bc5

Please sign in to comment.