]> granicus.if.org Git - vim/commitdiff
patch 8.2.3999: redundant check for NUL byte v8.2.3999
authorzeertzjq <zeertzjq@outlook.com>
Tue, 4 Jan 2022 16:22:52 +0000 (16:22 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Jan 2022 16:22:52 +0000 (16:22 +0000)
Problem:    Redundant check for NUL byte.
Solution:   Remove the check for a NUL byte. (closes #9471)

src/ex_docmd.c
src/version.c

index a0b9abf0fea6ff8bf6670ef8c838f661d3c38797..7f2be490806f15d5ff2ae0a9877fd639badbb6fd 100644 (file)
@@ -3897,7 +3897,7 @@ f_fullcommand(typval_T *argvars, typval_T *rettv)
     if (name == NULL)
        return;
 
-    while (*name != NUL && *name == ':')
+    while (*name == ':')
        name++;
     name = skip_range(name, TRUE, NULL);
 
index 4f40aab7ab164b86994052c1ea6f1be6956ef86e..2c280aff361546ee25739d48ead812a51e21372b 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3999,
 /**/
     3998,
 /**/