Merge pull request #9462 from yuwata/strv_split

make strv_split() accept empty string and use it in pager_open()
This commit is contained in:
Lennart Poettering
2018-07-13 20:32:37 +02:00
committed by GitHub
4 changed files with 43 additions and 16 deletions
+3 -5
View File
@@ -6785,11 +6785,9 @@ static int run_editor(char **paths) {
if (r < 0)
return r;
if (r == 0) {
const char **args;
char *editor, **editor_args = NULL;
char **tmp_path, **original_path, *p;
size_t n_editor_args = 0, i = 1;
size_t argc;
char **editor_args = NULL, **tmp_path, **original_path, *p;
size_t n_editor_args = 0, i = 1, argc;
const char **args, *editor;
argc = strv_length(paths)/2 + 1;