From f3cb5297746dfd6d5686f6d142d4cfea55c81d9e Mon Sep 17 00:00:00 2001 From: Ihor Antonov Date: Mon, 26 Aug 2019 14:22:39 -0400 Subject: clang/"dereference of null pointer" #10856 In edit.c insert_execute calls ins_compl_addfrommatch --- src/nvim/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit