aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-11 06:30:47 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-13 16:39:38 +0100
commit651e82af9fbd731c0215314a6e4861c9a38f0d48 (patch)
tree3218ac8c2bfa8a59b563ed236460758f532e8b98
parentfff68dccd916ed9fda52e6fc50c157f0ba7fde4d (diff)
downloadrneovim-651e82af9fbd731c0215314a6e4861c9a38f0d48.tar.gz
rneovim-651e82af9fbd731c0215314a6e4861c9a38f0d48.tar.bz2
rneovim-651e82af9fbd731c0215314a6e4861c9a38f0d48.zip
clang/"Assigned garbage": parse_shape_opt
False positive, see b6c1fae6a94d. Clang ignores the assert introduced in that commit?
-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.