From: Zbigniew Jędrzejewski-Szmek Date: Sun, 8 Apr 2018 06:12:18 +0000 (+0200) Subject: systemctl: pass BUS_MAP_STRDUP when needed (#8682) X-Git-Tag: v239~426 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f39cbb6e695f6fb8487c8930f5ec83e881bb0547;p=thirdparty%2Fsystemd.git systemctl: pass BUS_MAP_STRDUP when needed (#8682) This fixes an assert in "systemctl list-dependencies". Follow-up for a7e4861c7471bfe563078d11acbcecbf2d755462. --- 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);