From 651e82af9fbd731c0215314a6e4861c9a38f0d48 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 11 Jan 2019 06:30:47 +0100 Subject: clang/"Assigned garbage": parse_shape_opt False positive, see b6c1fae6a94d. Clang ignores the assert introduced in that commit? --- src/nvim/cursor_shape.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nvim/cursor_shape.c') 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. -- cgit