systemctl: shorten code a bit

This commit is contained in:
Lennart Poettering
2018-11-29 11:25:32 +01:00
parent 5daacba233
commit df79fdab21
+2 -4
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)