clang/"null pointer dereference" #10864

This commit is contained in:
Ihor Antonov
2019-08-27 16:28:42 -04:00
committed by Justin M. Keyes
parent a851090dec
commit 17f768ee9e

View File

@@ -674,7 +674,8 @@ static int insert_execute(VimState *state, int key)
// there is nothing to add, CTRL-L works like CTRL-P then.
if (s->c == Ctrl_L
&& (!CTRL_X_MODE_LINE_OR_EVAL(ctrl_x_mode)
|| (compl_shown_match->cp_str != NULL
|| (compl_shown_match != NULL
&& compl_shown_match->cp_str != NULL
&& (int)STRLEN(compl_shown_match->cp_str)
> curwin->w_cursor.col - compl_col))) {
ins_compl_addfrommatch();