From df79fdab214afce1ae53b8e324edd6402db2ef66 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Nov 2018 17:09:25 +0100 Subject: [PATCH] systemctl: shorten code a bit --- src/systemctl/systemctl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index b823d5d1160..e7cf33ec522 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6901,10 +6901,8 @@ static int run_editor(char **paths) { args[i] = editor_args[i]; } - STRV_FOREACH_PAIR(original_path, tmp_path, paths) { - args[i] = *tmp_path; - i++; - } + STRV_FOREACH_PAIR(original_path, tmp_path, paths) + args[i++] = *tmp_path; args[i] = NULL; if (n_editor_args > 0) -- 2.47.3