summaryrefslogtreecommitdiff
path: root/src/dosinst.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-14 19:54:39 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-14 19:54:39 +0100
commit142a9758151e470307a80ea37b06ea34558ff5b3 (patch)
tree5ccba6d4a0a2ff4f74bf1c20ae66c4bd0cd8d081 /src/dosinst.c
parent06b056e110005ce0dd97b8c6333405afd06c36fc (diff)
downloadvim-git-142a9758151e470307a80ea37b06ea34558ff5b3.tar.gz
patch 8.1.0589: compilation error in gvimext.cppv8.1.0589
Problem: Compilation error in gvimext.cpp. Solution: Return a value. Also fix using uninitialized variable.
Diffstat (limited to 'src/dosinst.c')
-rw-r--r--src/dosinst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dosinst.c b/src/dosinst.c
index f73576fda..9ecb0f4eb 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -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] != '-')