diff --git a/libratbox/src/epoll.c b/libratbox/src/epoll.c index 480ceed08..4f6b13e3d 100644 --- a/libratbox/src/epoll.c +++ b/libratbox/src/epoll.c @@ -405,7 +405,7 @@ rb_epoll_sched_event_signalfd(struct ev_entry *event, int when) struct sigevent ev; struct itimerspec ts; - memset(&ev, 0, sizeof(&ev)); + memset(&ev, 0, sizeof(ev)); event->comm_ptr = rb_malloc(sizeof(timer_t)); id = event->comm_ptr; ev.sigev_notify = SIGEV_SIGNAL; diff --git a/libratbox/src/sigio.c b/libratbox/src/sigio.c index d63bffce5..2419dd813 100644 --- a/libratbox/src/sigio.c +++ b/libratbox/src/sigio.c @@ -412,7 +412,7 @@ rb_sigio_sched_event(struct ev_entry *event, int when) if(can_do_event <= 0) return 0; - memset(&ev, 0, sizeof(&ev)); + memset(&ev, 0, sizeof(ev)); event->comm_ptr = rb_malloc(sizeof(timer_t)); id = event->comm_ptr; ev.sigev_notify = SIGEV_SIGNAL;