summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-04 16:22:52 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-04 16:22:52 +0000
commitc024ed9233feac4c8da7394a62bb50474803514f (patch)
tree8bf4ce71bd65534566b8f27f71fce88cca83d9b1 /src/ex_docmd.c
parent48824e952f7db8ca657fe20e66456fc19fca6815 (diff)
patch 8.2.3999: redundant check for NUL bytev8.2.3999
Problem: Redundant check for NUL byte. Solution: Remove the check for a NUL byte. (closes #9471)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index a0b9abf0fe..7f2be49080 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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);