changeset 14752:c54f69fabee9 v8.1.0388

patch 8.1.0388: Coverity complains about possible NULL pointer use commit https://github.com/vim/vim/commit/bf1c1b85136bbbe55a50c9cd01ed064d8df75697 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 13 21:30:05 2018 +0200 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().
author Christian Brabandt <cb@256bit.org>
date Thu, 13 Sep 2018 21:45:05 +0200
parents b4cfad5cfb6d
children cb742b188eea
files src/evalfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -13075,7 +13075,7 @@ f_test_option_not_set(typval_T *argvars,
 	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);
     }
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    388,
+/**/
     387,
 /**/
     386,