]> granicus.if.org Git - vim/commitdiff
patch 8.1.0388: Coverity complains about possible NULL pointer use v8.1.0388
authorBram Moolenaar <Bram@vim.org>
Thu, 13 Sep 2018 19:30:05 +0000 (21:30 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 13 Sep 2018 19:30:05 +0000 (21:30 +0200)
Problem:    Coverity complains about possible NULL pointer use.
Solution:   Use get_tv_string() instead of get_tv_string_chk().

src/evalfunc.c
src/version.c

index 69a674d2c4f51fb325b57c09309069b883534b73..f49bcb843de03670037240b59b469054e9e167b6 100644 (file)
@@ -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);
     }
index 9b2e81b12535ac3cf393ccf49f11b9f2d4736ab8..dce4643c2faf8e4c8f0baa7232fafc538452f15b 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    388,
 /**/
     387,
 /**/