summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-21 17:51:08 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-21 18:10:06 +0100
commit290cb8e883b2e2ad237967fb2f7d455ecde66b46 (patch)
treed88c57d665b05e87fbe21069d32ad021952f2e7b /src
parentb1dffbb91b2accb93962feecf44c4e9b07f06651 (diff)
downloadsystemd-290cb8e883b2e2ad237967fb2f7d455ecde66b46.tar.gz
systemctl: tiny optimization
Diffstat (limited to 'src')
-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 965cbaaf33..9d94935d68 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -6449,7 +6449,7 @@ static int enable_sysv_units(const char *verb, char **args) {
assert(f > 0);
f--;
assert(args[f] == name);
- strv_remove(args, name);
+ strv_remove(args + f, name);
}
#endif