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

patch 8.1.0635: Coverity complains about null pointer use

Problem:    Coverity complains about null pointer use.
Solution:   Avoid using a null pointer.
This commit is contained in:
Bram Moolenaar 2018-12-24 23:35:13 +01:00
parent e3d31b02a5
commit e38197d50f
2 changed files with 3 additions and 1 deletions

View File

@ -13586,7 +13586,7 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED)
EMSG(_(e_invarg)); EMSG(_(e_invarg));
else else
{ {
name = tv_get_string_chk(&argvars[0]); name = tv_get_string(&argvars[0]);
val = (int)tv_get_number(&argvars[1]); val = (int)tv_get_number(&argvars[1]);
if (STRCMP(name, (char_u *)"redraw") == 0) if (STRCMP(name, (char_u *)"redraw") == 0)

View File

@ -799,6 +799,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 */
/**/
635,
/**/ /**/
634, 634,
/**/ /**/