aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor_shape.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-13 23:09:59 +0100
committerGitHub <noreply@github.com>2019-01-13 23:09:59 +0100
commita3d8cd3f69807d70d00eb58d4a654dde8ecda0e3 (patch)
treebbd5c9b9c1e873099cd8f222707d680fd850721a /src/nvim/cursor_shape.c
parent61ec31cde1373033179985f737b55e05cc1a2df7 (diff)
parent4cba75dab08ce718ff3e7500ca943789c1099c4e (diff)
downloadrneovim-a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3.tar.gz
rneovim-a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3.tar.bz2
rneovim-a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3.zip
Merge #9471 from justinmk/pvs-warnings
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r--src/nvim/cursor_shape.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c
index 5551576c6d..0377cb97e5 100644
--- a/src/nvim/cursor_shape.c
+++ b/src/nvim/cursor_shape.c
@@ -88,12 +88,13 @@ char_u *parse_shape_opt(int what)
char_u *colonp;
char_u *commap;
char_u *slashp;
- char_u *p, *endp;
- int idx = 0; /* init for GCC */
+ char_u *p = NULL;
+ char_u *endp;
+ int idx = 0; // init for GCC
int all_idx;
int len;
int i;
- int found_ve = false; /* found "ve" flag */
+ int found_ve = false; // found "ve" flag
int round;
// First round: check for errors; second round: do it for real.