fix warning: garbage/uninitialized value

According to clang scan-build, `fromcol` could be uninitialized at line
2645.

Found by clang scan-build 5.0
This commit is contained in:
Justin M. Keyes 2018-10-21 21:33:49 +02:00
parent 863dbbb3d4
commit e0f6f46c1b

View File

@ -2175,11 +2175,11 @@ win_line (
int n_skip = 0; /* nr of chars to skip for 'nowrap' */
int fromcol, tocol; /* start/end of inverting */
int fromcol_prev = -2; /* start of inverting after cursor */
int noinvcur = FALSE; /* don't invert the cursor */
pos_T *top, *bot;
int lnum_in_visual_area = FALSE;
int fromcol = 0, tocol = 0; // start/end of inverting
int fromcol_prev = -2; // start of inverting after cursor
int noinvcur = false; // don't invert the cursor
pos_T *top, *bot;
int lnum_in_visual_area = false;
pos_T pos;
long v;