diff options
author | Christian Brabandt <cb@256bit.org> | 2023-10-14 11:29:28 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-14 11:29:28 +0200 |
commit | cd6ee6935811ab223605a3f39a550d26a617867d (patch) | |
tree | 33d4a6e4492d4d57214617275084a1edc40e3690 | |
parent | 5ae6f9985ed52aa023baca99793dc5c1d62780c6 (diff) |
patch 9.0.2021: Coverity complains about change in charsetv9.0.2021
Problem: Coverity complains about change in charset (after v9.0.2017)
Solution: check pointer t at index 0
closes: #13322
Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | src/charset.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c index 50a81cccd9..bda3f911b6 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1348,7 +1348,7 @@ win_lbr_chartabsize( if (wp->w_p_lbr && wp->w_p_wrap && wp->w_width != 0) { char_u *t = cts->cts_line; - while (VIM_ISBREAK((int)*t)) + while (VIM_ISBREAK((int)t[0])) t++; vcol_start = t - cts->cts_line; } diff --git a/src/version.c b/src/version.c index afcdadfbb1..2c9354634b 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2021, +/**/ 2020, /**/ 2019, |