clang/"Assigned garbage": parse_shape_opt

False positive, see b6c1fae6a9. Clang ignores the assert introduced in
that commit?
This commit is contained in:
Justin M. Keyes
2019-01-11 06:30:47 +01:00
parent fff68dccd9
commit 651e82af9f

View File

@@ -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.