diff options
-rw-r--r-- | src/shared/dbus-loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/dbus-loop.c b/src/shared/dbus-loop.c index b42ae14511..fadbd43958 100644 --- a/src/shared/dbus-loop.c +++ b/src/shared/dbus-loop.c @@ -45,7 +45,7 @@ typedef struct EpollData { static dbus_bool_t add_watch(DBusWatch *watch, void *data) { EpollData _cleanup_free_ *e = NULL; - struct epoll_event ev = { .data.ptr = e }; + struct epoll_event ev = {}; assert(watch); @@ -58,6 +58,7 @@ static dbus_bool_t add_watch(DBusWatch *watch, void *data) { e->is_timeout = false; ev.events = bus_flags_to_events(watch); + ev.data.ptr = e; if (epoll_ctl(PTR_TO_INT(data), EPOLL_CTL_ADD, e->fd, &ev) < 0) { |