commit | 866c68861071f8cd1ef5a82445bebaafc8626e7e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Apr 07 14:02:01 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Apr 07 14:02:01 2017 +0200 |
tree | 404ce70bd6716788176cb6a24448de162de57cda | |
parent | ba6ec182973af726ce9b7b7eb3753fc3a7ae7d1b [diff] [blame] |
patch 8.0.0544: cppcheck warnings Problem: Cppcheck warnings. Solution: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique Pelle)
diff --git a/src/edit.c b/src/edit.c index ad8b89a..0153f3b 100644 --- a/src/edit.c +++ b/src/edit.c
@@ -9524,7 +9524,7 @@ #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. */