summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-23 14:33:19 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-23 14:33:19 +0200
commitdc633cf82758f67f656cda7fa8ccc30414ee53f8 (patch)
treee8a018a83d53136a6891b4ee4d37a8eb4183ce53 /src/misc1.c
parent73dfe917ba6357413aaf98a021c91add5ac6e9bc (diff)
downloadvim-git-dc633cf82758f67f656cda7fa8ccc30414ee53f8.tar.gz
patch 7.4.1780v7.4.1780
Problem: Warnings reported by cppcheck. Solution: Fix the warnings. (Dominique Pelle)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index ddd9a07aa..9fa85781a 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -1197,7 +1197,7 @@ open_line(
int i;
int l;
- for (i = 0; p[i] != NUL && i < lead_len; i += l)
+ for (i = 0; i < lead_len && p[i] != NUL; i += l)
{
l = (*mb_ptr2len)(p + i);
if (vim_strnsize(p, i + l) > repl_size)