[vim] 79/139: patch 7.4.1762 Problem: Coverity: useless assignments. Solution: Remove them.

James McCoy jamessan at debian.org
Fri May 6 04:00:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch debian/sid
in repository vim.

commit 268a06ce901d2c780304e0395028e3c2f60ec755
Author: Bram Moolenaar <Bram at vim.org>
Date:   Thu Apr 21 09:07:01 2016 +0200

    patch 7.4.1762
    Problem:    Coverity: useless assignments.
    Solution:   Remove them.
---
 src/search.c  | 3 +--
 src/version.c | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/search.c b/src/search.c
index 23cb291..5fc6820 100644
--- a/src/search.c
+++ b/src/search.c
@@ -4594,7 +4594,6 @@ current_search(
 	orig_pos = curwin->w_cursor;
 
 	pos = curwin->w_cursor;
-	start_pos = VIsual;
 
 	/* make sure, searching further will extend the match */
 	if (VIsual_active)
@@ -4606,7 +4605,7 @@ current_search(
 	}
     }
     else
-	orig_pos = pos = start_pos = curwin->w_cursor;
+	orig_pos = pos = curwin->w_cursor;
 
     /* Is the pattern is zero-width? */
     one_char = is_one_char(spats[last_idx].pat, TRUE);
diff --git a/src/version.c b/src/version.c
index 63dedd7..9cbce20 100644
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1762,
+/**/
     1761,
 /**/
     1760,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim.git



More information about the pkg-vim-maintainers mailing list