Commits

Bram Moolenaar  committed 3bd2c05

updated for version 7.3.771
Problem: Uninitialized variable. (Yasuhiro Matsumoto)
Solution: Set x2 to -1.

  • Participants
  • Parent commits bc8f5d7
  • Tags v7-3-771

Comments (0)

Files changed (2)

File src/option.c

 	{
 	    for (p = *varp; *p != NUL; ++p)
 	    {
-		int x2,x3 = -1;
+		int x2 = -1;
+		int x3 = -1;
 
 		if (*p != NUL)
 		    p += mb_ptr2len(p);
 		    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;

File src/version.c

 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    771,
+/**/
     770,
 /**/
     769,