Mercurial > vim
diff src/screen.c @ 5096:a6ddcab6a240 v7.3.1291
updated for version 7.3.1291
Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution: Initialize the variables.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 03 Jul 2013 13:29:58 +0200 |
parents | 8b7baf39a345 |
children | 71859e71b1f9 |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -279,13 +279,13 @@ redraw_asap(type) int rows; int r; int ret = 0; - schar_T *screenline; /* copy from ScreenLines[] */ - sattr_T *screenattr; /* copy from ScreenAttrs[] */ + schar_T *screenline; /* copy from ScreenLines[] */ + sattr_T *screenattr; /* copy from ScreenAttrs[] */ #ifdef FEAT_MBYTE int i; - u8char_T *screenlineUC; /* copy from ScreenLinesUC[] */ + u8char_T *screenlineUC = NULL; /* copy from ScreenLinesUC[] */ u8char_T *screenlineC[MAX_MCO]; /* copy from ScreenLinesC[][] */ - schar_T *screenline2; /* copy from ScreenLines2[] */ + schar_T *screenline2 = NULL; /* copy from ScreenLines2[] */ #endif redraw_later(type);