mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.771
Problem: Uninitialized variable. (Yasuhiro Matsumoto) Solution: Set x2 to -1.
This commit is contained in:
parent
08ed30eca7
commit
0936502538
@ -6154,7 +6154,8 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
|||||||
{
|
{
|
||||||
for (p = *varp; *p != NUL; ++p)
|
for (p = *varp; *p != NUL; ++p)
|
||||||
{
|
{
|
||||||
int x2,x3 = -1;
|
int x2 = -1;
|
||||||
|
int x3 = -1;
|
||||||
|
|
||||||
if (*p != NUL)
|
if (*p != NUL)
|
||||||
p += mb_ptr2len(p);
|
p += mb_ptr2len(p);
|
||||||
@ -6165,8 +6166,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf,
|
|||||||
x3 = mb_ptr2char(p);
|
x3 = mb_ptr2char(p);
|
||||||
p += mb_ptr2len(p);
|
p += mb_ptr2len(p);
|
||||||
}
|
}
|
||||||
if (x2 != ':' || x2 == -1 || x3 == -1
|
if (x2 != ':' || x3 == -1 || (*p != NUL && *p != ','))
|
||||||
|| (*p != NUL && *p != ','))
|
|
||||||
{
|
{
|
||||||
errmsg = e_invarg;
|
errmsg = e_invarg;
|
||||||
break;
|
break;
|
||||||
|
@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
771,
|
||||||
/**/
|
/**/
|
||||||
770,
|
770,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user