]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0086: Coverity complains that ScreenLines can be NULL v9.2.0086
authorChristian Brabandt <cb@256bit.org>
Sun, 1 Mar 2026 17:21:16 +0000 (17:21 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 1 Mar 2026 17:21:16 +0000 (17:21 +0000)
Problem:  Coverity complains that ScreenLines can be NULL
          (after v9.2.0080)
Solution: Remove null test

closes: #19538
CID: 1682067

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupwin.c
src/version.c

index e49a86348891fa0a08efe582e13cf433eeb72f04..1d8356ccf8f04d8148aa43743e92a873ee5b51d8 100644 (file)
@@ -4414,7 +4414,7 @@ draw_opacity_padding_cell(
 
            // Prefer current screen state for detecting a wide char, since the
            // saved data may not contain a reliable right-half marker.
-           if (base_off >= 0 && ScreenLines != NULL)
+           if (base_off >= 0)
            {
                if (ScreenLinesUC != NULL
                        && ScreenLinesUC[base_off] != 0
index d001aa53fdfb36bf9fec55bcf54dd5e93b281003..e4cec84002a3adb35f0e1fb191f01c76af2fd8e5 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    86,
 /**/
     85,
 /**/