summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-08 08:12:18 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-04-08 15:12:18 +0900
commitf39cbb6e695f6fb8487c8930f5ec83e881bb0547 (patch)
tree0ba84cb24a2534a9f44a5b06095befbd9fb7cbda /src/systemctl
parent5c69b31c137ffa24bca5a4628f9b4879d0f4e84a (diff)
downloadsystemd-f39cbb6e695f6fb8487c8930f5ec83e881bb0547.tar.gz
systemctl: pass BUS_MAP_STRDUP when needed (#8682)
This fixes an assert in "systemctl list-dependencies". Follow-up for a7e4861c7471bfe563078d11acbcecbf2d755462.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index b4cbe126f6..16a28edaa2 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);