]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.113 v7.4.113
authorBram Moolenaar <Bram@vim.org>
Sat, 7 Dec 2013 13:48:10 +0000 (14:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 7 Dec 2013 13:48:10 +0000 (14:48 +0100)
Problem:    MSVC static analysis gives warnings.
Solution:   Avoid the warnings and avoid possible bugs. (Ken Takata)

src/os_win32.c
src/version.c

index 413dbfa0b9265c955f8eda5cdf620a55350ce394..91c8368f30826ad8bd967e2ec0772a1a4f00af73 100644 (file)
@@ -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;
                }
            }
index 69be33b06025458a3ae5a2284726b65ae25b349e..77020f2e20365bf0cb6bf7c1ebcc3d727b3ffcea 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    113,
 /**/
     112,
 /**/