diff options
author | Mark Bainter <mbainter+github@gmail.com> | 2015-04-08 14:39:44 +0000 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-04-12 10:52:51 +0200 |
commit | 675e363316ea8e78d461d23ca848790c52d0c62e (patch) | |
tree | 6224ffccb6d70ccfc968867912459855210d6c53 /src/nvim/os/env.c | |
parent | ecc28fb2dd43551f349a071f9597cf7033f306f7 (diff) | |
download | rneovim-675e363316ea8e78d461d23ca848790c52d0c62e.tar.gz rneovim-675e363316ea8e78d461d23ca848790c52d0c62e.tar.bz2 rneovim-675e363316ea8e78d461d23ca848790c52d0c62e.zip |
Refactor default_vim{,runtime}_dir to use char type. #2375
See: #459
Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com>
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index 30e44341a9..52c3e0d9cd 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -495,13 +495,14 @@ char_u *vim_getenv(char_u *name, bool *mustfree) if (p == NULL) { /* Only use default_vimruntime_dir when it is not empty */ if (vimruntime && *default_vimruntime_dir != NUL) { - p = default_vimruntime_dir; + p = (char_u *)default_vimruntime_dir; *mustfree = false; } else if (*default_vim_dir != NUL) { - if (vimruntime && (p = vim_version_dir(default_vim_dir)) != NULL) { + if (vimruntime + && (p = vim_version_dir((char_u *)default_vim_dir)) != NULL) { *mustfree = true; } else { - p = default_vim_dir; + p = (char_u *)default_vim_dir; *mustfree = false; } } |