]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1246: coverity complains about some changes in v9.1.1243 v9.1.1246
authorYee Cheng Chin <ychin.git@gmail.com>
Thu, 27 Mar 2025 16:34:50 +0000 (17:34 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 27 Mar 2025 16:34:50 +0000 (17:34 +0100)
Problem:  coverity complains about some changes in v9.1.1243
Solution: remove duplicate code in diff_find_changed() (Yee Cheng Chin)

closes: #16988

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/diff.c
src/version.c

index 638aed94ee962685487d268b9b72c6947d8d9292..3adcdb7dba67a493e325c561990780d183e5a97e 100644 (file)
@@ -3598,7 +3598,6 @@ diff_find_change(
 
        // Create a mock diffline struct. We always only have one so no need to
        // allocate memory.
-       idx = diff_buf_idx(wp->w_buffer);;
        CLEAR_FIELD(simple_diffline_change);
        diffline->changes = &simple_diffline_change;
        diffline->num_changes = 1;
index 7e02ea5d2953f21a7d38fb4231bda1f919e0fc3e..271bd822d06b71795196aa2b78910a7ea1e05ce6 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1246,
 /**/
     1245,
 /**/