summaryrefslogtreecommitdiff
path: root/src/dbus-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus-path.c')
-rw-r--r--src/dbus-path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus-path.c b/src/dbus-path.c
index 15238798ae..f67b5a2b7c 100644
--- a/src/dbus-path.c
+++ b/src/dbus-path.c
@@ -86,7 +86,7 @@ static int bus_path_append_unit(DBusMessageIter *i, const char *property, void *
assert(property);
assert(u);
- t = u->path.unit ? u->path.unit->meta.id : "";
+ t = UNIT_DEREF(u->path.unit) ? UNIT_DEREF(u->path.unit)->meta.id : "";
return dbus_message_iter_append_basic(i, DBUS_TYPE_STRING, &t) ? 0 : -ENOMEM;
}