mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.1708: Coverity warns for using uninitialized variable
Problem: Coverity warns for using uninitialized variable. Solution: Set the start col when col is set.
This commit is contained in:
parent
cfdbc5adde
commit
3fb4f4762b
@ -72,6 +72,7 @@ find_word_under_cursor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
col = vcol2col(wp, lnum, col);
|
col = vcol2col(wp, lnum, col);
|
||||||
|
scol = col;
|
||||||
|
|
||||||
if (VIsual_active
|
if (VIsual_active
|
||||||
&& wp->w_buffer == curwin->w_buffer
|
&& wp->w_buffer == curwin->w_buffer
|
||||||
@ -95,6 +96,7 @@ find_word_under_cursor(
|
|||||||
lbuf = vim_strnsave(lbuf + spos->col, len);
|
lbuf = vim_strnsave(lbuf + spos->col, len);
|
||||||
lnum = spos->lnum;
|
lnum = spos->lnum;
|
||||||
col = spos->col;
|
col = spos->col;
|
||||||
|
scol = col;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -777,6 +777,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1708,
|
||||||
/**/
|
/**/
|
||||||
1707,
|
1707,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user