Problem: MSVC static analysis gives warnings.
Solution: Avoid the warnings and avoid possible bugs. (Ken Takata)
WCHAR *porig, *porigPrev;
int flen;
WIN32_FIND_DATAW fb;
- HANDLE hFind;
+ HANDLE hFind = INVALID_HANDLE_VALUE;
int c;
int slen;
/* copy leading drive letter */
*ptrue++ = *porig++;
*ptrue++ = *porig++;
- *ptrue = NUL; /* in case nothing follows */
}
+ *ptrue = NUL; /* in case nothing follows */
while (*porig != NUL)
{
/* copy leading drive letter */
*ptrue++ = *porig++;
*ptrue++ = *porig++;
- *ptrue = NUL; /* in case nothing follows */
}
+ *ptrue = NUL; /* in case nothing follows */
while (*porig != NUL)
{
while (i > 0)
free(argv[--i]);
free(argv);
+ argv = NULL;
argc = 0;
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 113,
/**/
112,
/**/