aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@users.noreply.github.com>2019-08-26 14:22:39 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-08-26 20:22:39 +0200
commitf3cb5297746dfd6d5686f6d142d4cfea55c81d9e (patch)
treed067f4f034ba33ef102f9bf4912bb15e1ad3af07
parent7d56c90dff7ec69fc7b27c7bfde8f6c8c9f81695 (diff)
downloadrneovim-f3cb5297746dfd6d5686f6d142d4cfea55c81d9e.tar.gz
rneovim-f3cb5297746dfd6d5686f6d142d4cfea55c81d9e.tar.bz2
rneovim-f3cb5297746dfd6d5686f6d142d4cfea55c81d9e.zip
clang/"dereference of null pointer" #10856
In edit.c insert_execute calls ins_compl_addfrommatch
-rw-r--r--src/nvim/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index b53f9d0aa9..52efd72797 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -3331,7 +3331,7 @@ static void ins_compl_addfrommatch(void)
int len = (int)curwin->w_cursor.col - (int)compl_col;
int c;
compl_T *cp;
-
+ assert(compl_shown_match != NULL);
p = compl_shown_match->cp_str;
if ((int)STRLEN(p) <= len) { /* the match is too short */
/* When still at the original match use the first entry that matches