summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-07 14:02:01 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-07 14:02:01 +0200
commit866c68861071f8cd1ef5a82445bebaafc8626e7e (patch)
tree404ce70bd6716788176cb6a24448de162de57cda /src/edit.c
parentba6ec182973af726ce9b7b7eb3753fc3a7ae7d1b (diff)
downloadvim-866c68861071f8cd1ef5a82445bebaafc8626e7e.zip
patch 8.0.0544: cppcheck warnings
Problem: Cppcheck warnings. Solution: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique Pelle)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index ad8b89a95..0153f3b9d 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -9524,7 +9524,7 @@ bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
#endif
buf[idx++] = c;
buf[idx] = NUL;
- if (end != NUL && STRNCMP(buf, end, idx) == 0)
+ if (end != NULL && STRNCMP(buf, end, idx) == 0)
{
if (end[idx] == NUL)
break; /* Found the end of paste code. */