diff src/ex_getln.c @ 9301:c3805fb080a6 v7.4.1933

commit https://github.com/vim/vim/commit/72e697d189616265ecefe0df4509d476df3bae40 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 22:48:01 2016 +0200 patch 7.4.1933 Problem: Compiler warning about uninitialzed variable. (Yegappan) Solution: Give it a dummy value.
author Christian Brabandt <cb@256bit.org>
date Mon, 13 Jun 2016 23:00:05 +0200
parents af25a1a875db
children 32e34e574716
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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;