diff src/edit.c @ 11317:e45c6e4d78af v8.0.0544

patch 8.0.0544: cppcheck warnings commit https://github.com/vim/vim/commit/866c68861071f8cd1ef5a82445bebaafc8626e7e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 7 14:02:01 2017 +0200 patch 8.0.0544: cppcheck warnings Problem: Cppcheck warnings. Solution: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Fri, 07 Apr 2017 14:15:06 +0200
parents be499043ca70
children 328a9ee98fb2
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -9524,7 +9524,7 @@ bracketed_paste(paste_mode_T mode, int d
 #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. */