changeset 26941:33120321ff2c v8.2.3999

patch 8.2.3999: redundant check for NUL byte Commit: https://github.com/vim/vim/commit/c024ed9233feac4c8da7394a62bb50474803514f Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Jan 4 16:22:52 2022 +0000 patch 8.2.3999: redundant check for NUL byte Problem: Redundant check for NUL byte. Solution: Remove the check for a NUL byte. (closes https://github.com/vim/vim/issues/9471)
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Jan 2022 17:30:04 +0100
parents 72987374e1e4
children 6902cb522a12
files src/ex_docmd.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3897,7 +3897,7 @@ f_fullcommand(typval_T *argvars, typval_
     if (name == NULL)
 	return;
 
-    while (*name != NUL && *name == ':')
+    while (*name == ':')
 	name++;
     name = skip_range(name, TRUE, NULL);
 
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3999,
+/**/
     3998,
 /**/
     3997,