]> granicus.if.org Git - vim/commitdiff
patch 7.4.2256 v7.4.2256
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2016 14:29:47 +0000 (16:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2016 14:29:47 +0000 (16:29 +0200)
Problem:    Coverity complains about null pointer check.
Solution:   Remove wrong and superfluous error check.

src/eval.c
src/version.c

index cbfd98feacd52d11012d947fd91127f789749968..350173a234a9ac96e3d4d447628d2706df6782a2 100644 (file)
@@ -4941,12 +4941,9 @@ get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
 
     }
     *name = NUL;
-    if (p == NUL)
-    {
-       EMSG2(_("E114: Missing quote: %s"), *arg);
-       return FAIL;
-    }
-    *arg = p + 1;
+    if (*p != NUL) /* just in case */
+       ++p;
+    *arg = p;
 
     return OK;
 }
index 0196282a4808e1baec6c477e61c96ec206539bc4..ec0dca88b1ca30b3e086910b67a2c671eb429801 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2256,
 /**/
     2255,
 /**/