fixup! cursor_shape: check if modep is nonnull

This commit is contained in:
Jan Edmund Lazo
2019-09-11 22:29:50 -04:00
parent 6508215b5c
commit e3c67755b8

View File

@@ -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, ',');