summaryrefslogtreecommitdiff
path: root/src/dbus-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus-device.c')
-rw-r--r--src/dbus-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dbus-device.c b/src/dbus-device.c
index f85ad2daf8..dd5d0e9189 100644
--- a/src/dbus-device.c
+++ b/src/dbus-device.c
@@ -48,9 +48,10 @@ const char bus_device_invalidating_properties[] =
"SysFSPath\0";
DBusHandlerResult bus_device_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) {
+ Device *d = DEVICE(u);
const BusProperty properties[] = {
BUS_UNIT_PROPERTIES,
- { "org.freedesktop.systemd1.Device", "SysFSPath", bus_property_append_string, "s", u->device.sysfs },
+ { "org.freedesktop.systemd1.Device", "SysFSPath", bus_property_append_string, "s", d->sysfs },
{ NULL, NULL, NULL, NULL, NULL }
};