mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.0607: gcc warns for using uninitialized variable
Problem: Gcc warns for using uninitialized variable. (John Marriott) Solution: Set name_end also for environment variables.
This commit is contained in:
parent
fbf2122cf9
commit
2bb76accc6
@ -1428,34 +1428,35 @@ ex_unletlock(
|
|||||||
if (!error && !eap->skip
|
if (!error && !eap->skip
|
||||||
&& callback(&lv, arg, eap, deep, cookie) == FAIL)
|
&& callback(&lv, arg, eap, deep, cookie) == FAIL)
|
||||||
error = TRUE;
|
error = TRUE;
|
||||||
arg = skipwhite(arg);
|
name_end = arg;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
// Parse the name and find the end.
|
|
||||||
name_end = get_lval(arg, NULL, &lv, TRUE, eap->skip || error,
|
|
||||||
glv_flags, FNE_CHECK_START);
|
|
||||||
if (lv.ll_name == NULL)
|
|
||||||
error = TRUE; // error but continue parsing
|
|
||||||
if (name_end == NULL || (!VIM_ISWHITE(*name_end)
|
|
||||||
&& !ends_excmd(*name_end)))
|
|
||||||
{
|
{
|
||||||
if (name_end != NULL)
|
// Parse the name and find the end.
|
||||||
|
name_end = get_lval(arg, NULL, &lv, TRUE, eap->skip || error,
|
||||||
|
glv_flags, FNE_CHECK_START);
|
||||||
|
if (lv.ll_name == NULL)
|
||||||
|
error = TRUE; // error but continue parsing
|
||||||
|
if (name_end == NULL || (!VIM_ISWHITE(*name_end)
|
||||||
|
&& !ends_excmd(*name_end)))
|
||||||
{
|
{
|
||||||
emsg_severe = TRUE;
|
if (name_end != NULL)
|
||||||
emsg(_(e_trailing));
|
{
|
||||||
|
emsg_severe = TRUE;
|
||||||
|
emsg(_(e_trailing));
|
||||||
|
}
|
||||||
|
if (!(eap->skip || error))
|
||||||
|
clear_lval(&lv);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (!(eap->skip || error))
|
|
||||||
clear_lval(&lv);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!error && !eap->skip
|
if (!error && !eap->skip
|
||||||
&& callback(&lv, name_end, eap, deep, cookie) == FAIL)
|
&& callback(&lv, name_end, eap, deep, cookie) == FAIL)
|
||||||
error = TRUE;
|
error = TRUE;
|
||||||
|
|
||||||
if (!eap->skip)
|
if (!eap->skip)
|
||||||
clear_lval(&lv);
|
clear_lval(&lv);
|
||||||
|
}
|
||||||
|
|
||||||
arg = skipwhite(name_end);
|
arg = skipwhite(name_end);
|
||||||
} while (!ends_excmd2(name_end, arg));
|
} while (!ends_excmd2(name_end, arg));
|
||||||
|
@ -746,6 +746,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 */
|
||||||
|
/**/
|
||||||
|
607,
|
||||||
/**/
|
/**/
|
||||||
606,
|
606,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user