From e3c67755b84379348abe5fa4aa94ff5830649a17 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 11 Sep 2019 22:29:50 -0400 Subject: fixup! cursor_shape: check if modep is nonnull --- src/nvim/cursor_shape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c index 96ff1e5631..9c8128db4f 100644 --- a/src/nvim/cursor_shape.c +++ b/src/nvim/cursor_shape.c @@ -104,7 +104,7 @@ char_u *parse_shape_opt(int what) if (*p_guicursor == NUL) { modep = (char_u *)"a:block-blinkon0"; } - while (*modep != NUL) { + while (modep != NULL && *modep != NUL) { colonp = vim_strchr(modep, ':'); commap = vim_strchr(modep, ','); -- cgit