0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.0388: Coverity complains about possible NULL pointer use

Problem:    Coverity complains about possible NULL pointer use.
Solution:   Use get_tv_string() instead of get_tv_string_chk().
This commit is contained in:
Bram Moolenaar 2018-09-13 21:30:05 +02:00
parent 24839edc54
commit bf1c1b8513
2 changed files with 3 additions and 1 deletions

View File

@ -13075,7 +13075,7 @@ f_test_option_not_set(typval_T *argvars, typval_T *rettv UNUSED)
EMSG(_(e_invarg));
else
{
name = get_tv_string_chk(&argvars[0]);
name = get_tv_string(&argvars[0]);
if (reset_option_was_set(name) == FAIL)
EMSG2(_(e_invarg2), name);
}

View File

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