aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-09-16 19:01:37 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-09-16 19:01:37 -0400
commit8d6540f8764c4a691e22890258599d74b43b52e6 (patch)
tree167a3318be46cd0889b93b08cc76c6cd1fd16986 /src
parent7fcc504fa689c7cfdd27d7bed10cc46cc81d16d0 (diff)
parent9ede170e7ebe6571191b79a0e8c2c66ca620c41d (diff)
downloadrneovim-8d6540f8764c4a691e22890258599d74b43b52e6.tar.gz
rneovim-8d6540f8764c4a691e22890258599d74b43b52e6.tar.bz2
rneovim-8d6540f8764c4a691e22890258599d74b43b52e6.zip
Merge pull request #1129 from justinmk/clang
clang: Null pointer passed as an argument to a 'nonnull' parameter
Diffstat (limited to 'src')
-rw-r--r--src/nvim/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index f670098896..d7e9618639 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -737,7 +737,7 @@ open_line (
p_extra = (char_u *)""; /* append empty line */
/* concatenate leader and p_extra, if there is a leader */
- if (lead_len) {
+ if (lead_len > 0) {
if (flags & OPENLINE_COM_LIST && second_line_indent > 0) {
int i;
int padding = second_line_indent