forked from aniani/vim
patch 9.0.0501: warning for using uninitialized value in mouse test
Problem: Warning for using uninitialized value in mouse test. Solution: Clear ScreenCols when allocating it. (Dominique Pellé)
This commit is contained in:
parent
b2f0ca820e
commit
18ee0feb5d
@ -2708,7 +2708,9 @@ retry:
|
||||
if (enc_dbcs == DBCS_JPNU)
|
||||
new_ScreenLines2 = LALLOC_MULT(schar_T, (Rows + 1) * Columns);
|
||||
new_ScreenAttrs = LALLOC_MULT(sattr_T, (Rows + 1) * Columns);
|
||||
new_ScreenCols = LALLOC_MULT(colnr_T, (Rows + 1) * Columns);
|
||||
// Clear ScreenCols to avoid a warning for unitialized memory in
|
||||
// jump_to_mouse().
|
||||
new_ScreenCols = LALLOC_CLEAR_MULT(colnr_T, (Rows + 1) * Columns);
|
||||
new_LineOffset = LALLOC_MULT(unsigned, Rows);
|
||||
new_LineWraps = LALLOC_MULT(char_u, Rows);
|
||||
new_TabPageIdxs = LALLOC_MULT(short, Columns);
|
||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
501,
|
||||
/**/
|
||||
500,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user