# HG changeset patch # User Bram Moolenaar # Date 1436560680 -7200 # Node ID dd094497f9fa237f3b1d7e673146d8128e3ee2d0 # Parent 2def7b25de603fc6b4a164909a5c50ce5eeceb82 patch 7.4.778 Problem: Coverity warns for uninitialized variable. Solution: Change condition of assignment. diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -5702,10 +5702,10 @@ do_addsub(command, Prenum1, g_cmd) /* reset */ subtract = FALSE; negative = FALSE; - if (visual && VIsual_mode != Ctrl_V) + if (visual && VIsual_mode == Ctrl_V) + col = startcol; + else col = 0; - else - col = startcol; Prenum1 += offset; curwin->w_set_curswant = TRUE; #ifdef FEAT_RIGHTLEFT diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 778, +/**/ 777, /**/ 776,