]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2021: Coverity complains about change in charset v9.0.2021
authorChristian Brabandt <cb@256bit.org>
Sat, 14 Oct 2023 09:29:28 +0000 (11:29 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 14 Oct 2023 09:29:28 +0000 (11:29 +0200)
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>
src/charset.c
src/version.c

index 50a81cccd9681e8627271aeb380ec54a11969a88..bda3f911b685e3419b3518210f8b28b4cada5c13 100644 (file)
@@ -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;
     }
index afcdadfbb194471e577215cc98fd6b0ebef1b76e..2c9354634b597dff3a6204af26e61db9b655541c 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2021,
 /**/
     2020,
 /**/