From f39cbb6e695f6fb8487c8930f5ec83e881bb0547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 8 Apr 2018 08:12:18 +0200 Subject: [PATCH] systemctl: pass BUS_MAP_STRDUP when needed (#8682) This fixes an assert in "systemctl list-dependencies". Follow-up for a7e4861c7471bfe563078d11acbcecbf2d755462. --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index b4cbe126f67..16a28edaa22 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -1680,7 +1680,7 @@ static int list_dependencies_get_dependencies(sd_bus *bus, const char *name, cha "org.freedesktop.systemd1", path, map[arg_dependency], - 0, + BUS_MAP_STRDUP, &error, NULL, &info);