[systemd-commits] src/shared
Kay Sievers
kay at kemper.freedesktop.org
Fri Apr 5 17:58:37 PDT 2013
src/shared/dbus-loop.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2f9f5aa014bda3b52ae388a7283e0fd50d4621c3
Author: Kay Sievers <kay at vrfy.org>
Date: Sat Apr 6 02:56:04 2013 +0200
dbus-loop.c: fix variable initialization
Fix for:
b92bea5d2a9481de69bb627a7b442a9f58fca43d
Causing:
systemd-logind[265]: Assertion 'd = event.data.ptr' failed at src/shared/dbus-loop.c:233, function bus_loop_dispatch(). Aborting.
diff --git a/src/shared/dbus-loop.c b/src/shared/dbus-loop.c
index b42ae14..fadbd43 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) {
More information about the systemd-commits
mailing list