Skip to content

Commit 56e6e5f

Browse files
committed
updated for version 7.4.113
Problem: MSVC static analysis gives warnings. Solution: Avoid the warnings and avoid possible bugs. (Ken Takata)
1 parent ed08167 commit 56e6e5f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/os_win32.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ fname_casew(
25092509
WCHAR *porig, *porigPrev;
25102510
int flen;
25112511
WIN32_FIND_DATAW fb;
2512-
HANDLE hFind;
2512+
HANDLE hFind = INVALID_HANDLE_VALUE;
25132513
int c;
25142514
int slen;
25152515

@@ -2528,8 +2528,8 @@ fname_casew(
25282528
/* copy leading drive letter */
25292529
*ptrue++ = *porig++;
25302530
*ptrue++ = *porig++;
2531-
*ptrue = NUL; /* in case nothing follows */
25322531
}
2532+
*ptrue = NUL; /* in case nothing follows */
25332533

25342534
while (*porig != NUL)
25352535
{
@@ -2673,8 +2673,8 @@ fname_case(
26732673
/* copy leading drive letter */
26742674
*ptrue++ = *porig++;
26752675
*ptrue++ = *porig++;
2676-
*ptrue = NUL; /* in case nothing follows */
26772676
}
2677+
*ptrue = NUL; /* in case nothing follows */
26782678

26792679
while (*porig != NUL)
26802680
{
@@ -6272,6 +6272,7 @@ get_cmd_argsW(char ***argvp)
62726272
while (i > 0)
62736273
free(argv[--i]);
62746274
free(argv);
6275+
argv = NULL;
62756276
argc = 0;
62766277
}
62776278
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
113,
741743
/**/
742744
112,
743745
/**/

0 commit comments

Comments
 (0)