Commit: patch 9.1.1246: coverity complains about some changes in v9.1.1243

1 view
Skip to first unread message

Christian Brabandt

unread,
Mar 27, 2025, 12:45:18 PM3/27/25
to vim...@googlegroups.com
patch 9.1.1246: coverity complains about some changes in v9.1.1243

Commit: https://github.com/vim/vim/commit/4f9b1243e3ef60b9efb64a4e789c55be3cdc7a25
Author: Yee Cheng Chin <ychi...@gmail.com>
Date: Thu Mar 27 17:34:50 2025 +0100

patch 9.1.1246: coverity complains about some changes in v9.1.1243

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 <ychi...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/diff.c b/src/diff.c
index 638aed94e..3adcdb7db 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 7e02ea5d2..271bd822d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1246,
/**/
1245,
/**/
Reply all
Reply to author
Forward
0 new messages