]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1291 v7.3.1291
authorBram Moolenaar <Bram@vim.org>
Wed, 3 Jul 2013 11:29:58 +0000 (13:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Jul 2013 11:29:58 +0000 (13:29 +0200)
Problem:    Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution:   Initialize the variables.

src/screen.c
src/version.c

index 9d0d63a5bdefb10269e61868b27156228fdb043e..d68a84b990f37a0749d8acd0bd3782f4fe4db631 100644 (file)
@@ -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);
index 68abf943f69d622c101e517ebc5f7d54cff28b4c..8c49821877d45c04dc682325fcf3370a2c299222 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1291,
 /**/
     1290,
 /**/