From: Bram Moolenaar Date: Mon, 24 Dec 2018 22:35:13 +0000 (+0100) Subject: patch 8.1.0635: Coverity complains about null pointer use X-Git-Tag: v8.1.0635 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e38197d50f7068c4b68043792d283da98e526ec3;p=vim patch 8.1.0635: Coverity complains about null pointer use Problem: Coverity complains about null pointer use. Solution: Avoid using a null pointer. --- diff --git a/src/evalfunc.c b/src/evalfunc.c index 99e68f7e5..a9ef60e40 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -13586,7 +13586,7 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED) EMSG(_(e_invarg)); else { - name = tv_get_string_chk(&argvars[0]); + name = tv_get_string(&argvars[0]); val = (int)tv_get_number(&argvars[1]); if (STRCMP(name, (char_u *)"redraw") == 0) diff --git a/src/version.c b/src/version.c index 2b1d397a3..0712bcc33 100644 --- a/src/version.c +++ b/src/version.c @@ -799,6 +799,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 635, /**/ 634, /**/