summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-12-07 14:48:10 +0100
committerBram Moolenaar <Bram@vim.org>2013-12-07 14:48:10 +0100
commit73c61633b6c0387333f208afb11a0a00bed09ef0 (patch)
tree967e9df0154feb810d0d1ff6761ecd2a92a15ba6 /src/os_win32.c
parentb050c6418647c5358564e4608e8bb6ac7caa93b8 (diff)
downloadvim-git-73c61633b6c0387333f208afb11a0a00bed09ef0.tar.gz
updated for version 7.4.113v7.4.113
Problem: MSVC static analysis gives warnings. Solution: Avoid the warnings and avoid possible bugs. (Ken Takata)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 413dbfa0b..91c8368f3 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2509,7 +2509,7 @@ fname_casew(
WCHAR *porig, *porigPrev;
int flen;
WIN32_FIND_DATAW fb;
- HANDLE hFind;
+ HANDLE hFind = INVALID_HANDLE_VALUE;
int c;
int slen;
@@ -2528,8 +2528,8 @@ fname_casew(
/* copy leading drive letter */
*ptrue++ = *porig++;
*ptrue++ = *porig++;
- *ptrue = NUL; /* in case nothing follows */
}
+ *ptrue = NUL; /* in case nothing follows */
while (*porig != NUL)
{
@@ -2673,8 +2673,8 @@ fname_case(
/* copy leading drive letter */
*ptrue++ = *porig++;
*ptrue++ = *porig++;
- *ptrue = NUL; /* in case nothing follows */
}
+ *ptrue = NUL; /* in case nothing follows */
while (*porig != NUL)
{
@@ -6272,6 +6272,7 @@ get_cmd_argsW(char ***argvp)
while (i > 0)
free(argv[--i]);
free(argv);
+ argv = NULL;
argc = 0;
}
}