diff options
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unit.c b/src/unit.c index 840c1d1fc4..dd665e2d5a 100644 --- a/src/unit.c +++ b/src/unit.c @@ -1551,6 +1551,9 @@ char *unit_dbus_path(Unit *u) { assert(u); + if (!u->meta.id) + return NULL; + if (!(e = bus_path_escape(u->meta.id))) return NULL; |