]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.771 v7.3.771
authorBram Moolenaar <Bram@vim.org>
Thu, 17 Jan 2013 16:37:35 +0000 (17:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 17 Jan 2013 16:37:35 +0000 (17:37 +0100)
Problem:    Uninitialized variable. (Yasuhiro Matsumoto)
Solution:   Set x2 to -1.

src/option.c
src/version.c

index 8f52406022723979c3ce5c6049851f49b0acd5ef..f38e9c70665476e6fc15729030758a4d7c38f4f5 100644 (file)
@@ -6154,7 +6154,8 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
        {
            for (p = *varp; *p != NUL; ++p)
            {
-               int x2,x3 = -1;
+               int x2 = -1;
+               int x3 = -1;
 
                if (*p != NUL)
                    p += mb_ptr2len(p);
@@ -6165,8 +6166,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
                    x3 = mb_ptr2char(p);
                    p += mb_ptr2len(p);
                }
-               if (x2 != ':' || x2 == -1 || x3 == -1
-                                                 || (*p != NUL && *p != ','))
+               if (x2 != ':' || x3 == -1 || (*p != NUL && *p != ','))
                {
                    errmsg = e_invarg;
                    break;
index 18fcd020f0c39e07ec3aa4ee89b26b1fdca88ec1..f071eb96216a25b3d9516bba8faec3e28b673d89 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    771,
 /**/
     770,
 /**/