mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user