0
0
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:
Bram Moolenaar 2020-04-19 22:57:44 +02:00
parent fbf2122cf9
commit 2bb76accc6
2 changed files with 24 additions and 21 deletions

View File

@ -1428,10 +1428,10 @@ ex_unletlock(
if (!error && !eap->skip
&& callback(&lv, arg, eap, deep, cookie) == FAIL)
error = TRUE;
arg = skipwhite(arg);
continue;
name_end = arg;
}
else
{
// Parse the name and find the end.
name_end = get_lval(arg, NULL, &lv, TRUE, eap->skip || error,
glv_flags, FNE_CHECK_START);
@ -1456,6 +1456,7 @@ ex_unletlock(
if (!eap->skip)
clear_lval(&lv);
}
arg = skipwhite(name_end);
} while (!ends_excmd2(name_end, arg));

View File

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