diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-08-19 17:25:27 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-08-28 16:11:22 -0400 |
commit | db782dc4862a0cb30922c238e9944eb096eb9cc0 (patch) | |
tree | 7a401c633194eddb4c6d8ac587724e9935fb6fe4 | |
parent | e0d812ab649c40b8cc0efbfbe5214fb5dd407e8f (diff) | |
download | rneovim-db782dc4862a0cb30922c238e9944eb096eb9cc0.tar.gz rneovim-db782dc4862a0cb30922c238e9944eb096eb9cc0.tar.bz2 rneovim-db782dc4862a0cb30922c238e9944eb096eb9cc0.zip |
clang: Null pointer passed as an argument to a 'nonnull' parameter #1090
-rw-r--r-- | src/nvim/misc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |