From c1d95b713a50c1dee6d82c27d7ed5ffad9daf603 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 6 Jun 2019 17:33:25 +0200 Subject: [PATCH] pid1: tiny simplification v2: - use empty_to_root() --- src/core/dbus-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index c113140e8f6..cdd312b9ca8 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -683,7 +683,7 @@ static int reply_unit_info(sd_bus_message *reply, Unit *u) { unit_path, u->job ? u->job->id : 0, u->job ? job_type_to_string(u->job->type) : "", - job_path ? job_path : "/"); + empty_to_root(job_path)); } static int method_list_units_by_names(sd_bus_message *message, void *userdata, sd_bus_error *error) { -- 2.47.3