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:
parent
24839edc54
commit
bf1c1b8513
@ -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);
|
||||
}
|
||||
|
@ -794,6 +794,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
388,
|
||||
/**/
|
||||
387,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user