From db782dc4862a0cb30922c238e9944eb096eb9cc0 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 19 Aug 2014 17:25:27 -0400 Subject: clang: Null pointer passed as an argument to a 'nonnull' parameter #1090 --- src/nvim/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 986374b352..8669977ea1 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -503,7 +503,7 @@ open_line ( break; } } - if (lead_len) { + if (lead_len > 0) { /* allocate buffer (may concatenate p_extra later) */ leader = xmalloc(lead_len + lead_repl_len + extra_space + extra_len + (second_line_indent > 0 ? second_line_indent : 0) + 1); -- cgit