mirror of
https://github.com/vim/vim.git
synced 2025-08-23 19:34:27 -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));
|
EMSG(_(e_invarg));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
name = get_tv_string_chk(&argvars[0]);
|
name = get_tv_string(&argvars[0]);
|
||||||
if (reset_option_was_set(name) == FAIL)
|
if (reset_option_was_set(name) == FAIL)
|
||||||
EMSG2(_(e_invarg2), name);
|
EMSG2(_(e_invarg2), name);
|
||||||
}
|
}
|
||||||
|
@ -794,6 +794,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 */
|
||||||
|
/**/
|
||||||
|
388,
|
||||||
/**/
|
/**/
|
||||||
387,
|
387,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user