diff src/ex_docmd.c @ 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 3631d2deb36c
children 51ddf6740ac6
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);