0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

updated for version 7.3.771

Problem:    Uninitialized variable. (Yasuhiro Matsumoto)
Solution:   Set x2 to -1.
This commit is contained in:
Bram Moolenaar 2013-01-17 17:37:35 +01:00
parent 08ed30eca7
commit 0936502538
2 changed files with 5 additions and 3 deletions

View 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;

View File

@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
771,
/**/
770,
/**/