Skip to content

Commit

Permalink
Avoid a couple of valgrind warnings on i686.
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Jan 12, 2019
1 parent 7939ddf commit 8d9500b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/poll_plugins/epoll_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int poll_create(void) {
}

int poll_set_data(void **_ev) {
*_ev = memhook._malloc(sizeof(struct epoll_event));
*_ev = memhook._calloc(1, sizeof(struct epoll_event));
MOD_ALLOC_ASSERT(*_ev);
return MOD_OK;
}
Expand Down
2 changes: 1 addition & 1 deletion Lib/poll_plugins/kqueue_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int poll_create(void) {
}

int poll_set_data(void **_ev) {
*_ev = memhook._malloc(sizeof(struct kevent));
*_ev = memhook._calloc(1, sizeof(struct kevent));
MOD_ALLOC_ASSERT(*_ev);
return MOD_OK;
}
Expand Down

0 comments on commit 8d9500b

Please sign in to comment.