aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-31 17:03:50 +0100
committerLennart Poettering <lennart@poettering.net>2018-10-31 18:00:52 +0100
commitbea1a01310efdf51b8c609a300d49bf5c25509c3 (patch)
tree763924b96caa50af59368c5a34d5f3c56c7f6ed0 /src/machine
parentMerge pull request #10573 from faheel/master (diff)
downloadsystemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.tar.gz
systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.tar.bz2
systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.zip
strv: wrap strv_new() in a macro so that NULL sentinel is implicit
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machine-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index 77e8b161b..4f4d780db 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -605,7 +605,7 @@ int bus_machine_method_open_shell(sd_bus_message *message, void *userdata, sd_bu
if (strv_isempty(args)) {
args = strv_free(args);
- args = strv_new(path, NULL);
+ args = strv_new(path);
if (!args)
return -ENOMEM;
}