]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1933 v7.4.1933
authorBram Moolenaar <Bram@vim.org>
Mon, 13 Jun 2016 20:48:01 +0000 (22:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 13 Jun 2016 20:48:01 +0000 (22:48 +0200)
Problem:    Compiler warning about uninitialzed variable. (Yegappan)
Solution:   Give it a dummy value.

src/ex_getln.c
src/version.c

index 2f5793a65fe2d20249dc6844190e3f5599b07397..fc0d995a86d13052a36f1749643ea23a4931810f 100644 (file)
@@ -6318,6 +6318,8 @@ handle_viminfo_history(
                    len = vp[3].bv_len;
                    p = lalloc(len + 2, TRUE);
                }
+               else
+                   len = 0; /* for picky compilers */
                if (p != NULL)
                {
                    viminfo_history[type][idx].time_set = vp[1].bv_nr;
index b06ede38dca744a3a022fa383c1bdc34ea724992..54c135cf09f96be68417b4bce892ec68e6fc4e27 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1933,
 /**/
     1932,
 /**/