mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.4.113
Problem: MSVC static analysis gives warnings. Solution: Avoid the warnings and avoid possible bugs. (Ken Takata)
This commit is contained in:
@@ -2509,7 +2509,7 @@ fname_casew(
|
|||||||
WCHAR *porig, *porigPrev;
|
WCHAR *porig, *porigPrev;
|
||||||
int flen;
|
int flen;
|
||||||
WIN32_FIND_DATAW fb;
|
WIN32_FIND_DATAW fb;
|
||||||
HANDLE hFind;
|
HANDLE hFind = INVALID_HANDLE_VALUE;
|
||||||
int c;
|
int c;
|
||||||
int slen;
|
int slen;
|
||||||
|
|
||||||
@@ -2528,8 +2528,8 @@ fname_casew(
|
|||||||
/* copy leading drive letter */
|
/* copy leading drive letter */
|
||||||
*ptrue++ = *porig++;
|
*ptrue++ = *porig++;
|
||||||
*ptrue++ = *porig++;
|
*ptrue++ = *porig++;
|
||||||
*ptrue = NUL; /* in case nothing follows */
|
|
||||||
}
|
}
|
||||||
|
*ptrue = NUL; /* in case nothing follows */
|
||||||
|
|
||||||
while (*porig != NUL)
|
while (*porig != NUL)
|
||||||
{
|
{
|
||||||
@@ -2673,8 +2673,8 @@ fname_case(
|
|||||||
/* copy leading drive letter */
|
/* copy leading drive letter */
|
||||||
*ptrue++ = *porig++;
|
*ptrue++ = *porig++;
|
||||||
*ptrue++ = *porig++;
|
*ptrue++ = *porig++;
|
||||||
*ptrue = NUL; /* in case nothing follows */
|
|
||||||
}
|
}
|
||||||
|
*ptrue = NUL; /* in case nothing follows */
|
||||||
|
|
||||||
while (*porig != NUL)
|
while (*porig != NUL)
|
||||||
{
|
{
|
||||||
@@ -6272,6 +6272,7 @@ get_cmd_argsW(char ***argvp)
|
|||||||
while (i > 0)
|
while (i > 0)
|
||||||
free(argv[--i]);
|
free(argv[--i]);
|
||||||
free(argv);
|
free(argv);
|
||||||
|
argv = NULL;
|
||||||
argc = 0;
|
argc = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
113,
|
||||||
/**/
|
/**/
|
||||||
112,
|
112,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user