aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor_shape.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-12 14:56:50 -0700
committerGitHub <noreply@github.com>2019-09-12 14:56:50 -0700
commit426399c2c4dd325bf00ffe1f410c1b9fd5053692 (patch)
tree1221e9b06624bee081f4a89b34820775e6e58f1e /src/nvim/cursor_shape.c
parent11fe132dd9c2e7d9613a24bf6f976557a924c3a2 (diff)
parent500c34479072589914f0c1c4a51a8c2d781a37b3 (diff)
downloadrneovim-426399c2c4dd325bf00ffe1f410c1b9fd5053692.tar.gz
rneovim-426399c2c4dd325bf00ffe1f410c1b9fd5053692.tar.bz2
rneovim-426399c2c4dd325bf00ffe1f410c1b9fd5053692.zip
Merge #10999 from janlazo/clang_pvs2
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r--src/nvim/cursor_shape.c2
1 files changed, 1 insertions, 1 deletions
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, ',');