]> granicus.if.org Git - vim/commitdiff
patch 7.4.1292 v7.4.1292
authorBram Moolenaar <Bram@vim.org>
Mon, 8 Feb 2016 21:57:24 +0000 (22:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 8 Feb 2016 21:57:24 +0000 (22:57 +0100)
Problem:    Some compilers complain about uninitialzed variable, even though
            all possible cases are handled. (Dominique Pelle)
Solution:   Add a default initialization.

src/eval.c
src/version.c

index b544fc349526cd0cb4c2a535c52c8dd34a778214..33f95ef30b0b0c1707cebd7ef19500a7f2419f43 100644 (file)
@@ -10611,7 +10611,7 @@ f_diff_hlID(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
     static void
 f_empty(typval_T *argvars, typval_T *rettv)
 {
-    int                n;
+    int                n = FALSE;
 
     switch (argvars[0].v_type)
     {
@@ -19935,7 +19935,7 @@ f_trunc(typval_T *argvars, typval_T *rettv)
     static void
 f_type(typval_T *argvars, typval_T *rettv)
 {
-    int n;
+    int n = -1;
 
     switch (argvars[0].v_type)
     {
@@ -24952,7 +24952,7 @@ write_viminfo_varlist(FILE *fp)
     hashitem_T *hi;
     dictitem_T *this_var;
     int                todo;
-    char       *s;
+    char       *s = "";
     char_u     *p;
     char_u     *tofree;
     char_u     numbuf[NUMBUFLEN];
index 9b9702aa27719b6f40c5ec666ee00f9d4fbf3b13..d9f08071914c01469c15d7b1c58c082dfd29fd92 100644 (file)
@@ -747,6 +747,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1292,
 /**/
     1291,
 /**/