systemctl: shorten code a bit

This commit is contained in:
Lennart Poettering 2018-11-27 17:09:25 +01:00
parent 5daacba233
commit df79fdab21
1 changed files with 2 additions and 4 deletions

View File

@ -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)