0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.1.0589: compilation error in gvimext.cpp

Problem:    Compilation error in gvimext.cpp.
Solution:   Return a value.  Also fix using uninitialized variable.
This commit is contained in:
Bram Moolenaar
2018-12-14 19:54:39 +01:00
parent 06b056e110
commit 142a975815
3 changed files with 8 additions and 3 deletions

View File

@@ -2459,7 +2459,7 @@ command_line_setup_choices(int argc, char **argv)
}
else if (strcmp(argv[i], "-create-directories") == 0)
{
int vimfiles_dir_choice;
int vimfiles_dir_choice = (int)vimfiles_dir_none;
init_directories_choice();
if (argv[i + 1][0] != '-')