4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Using map() to go over an empty list causes memory to be freed
13 Solution: Don't clear the typeval in restore_vimvar().
17 *** ../vim-7.1.112/src/eval.c Sun Sep 16 14:20:18 2007
18 --- src/eval.c Sun Sep 16 19:24:49 2007
24 - clear_tv(&vimvars[idx].vv_tv);
25 vimvars[idx].vv_tv = *save_tv;
26 if (vimvars[idx].vv_type == VAR_UNKNOWN)
34 - vimvars[VV_VAL].vv_str = NULL;
35 restore_vimvar(VV_VAL, &save_val);
45 copy_tv(tv, &vimvars[VV_VAL].vv_tv);
47 if (eval1(&s, &rettv, TRUE) == FAIL)
49 if (*s != NUL) /* check for trailing chars after expr */
51 EMSG2(_(e_invexpr2), s);
62 copy_tv(tv, &vimvars[VV_VAL].vv_tv);
64 if (eval1(&s, &rettv, TRUE) == FAIL)
66 if (*s != NUL) /* check for trailing chars after expr */
68 EMSG2(_(e_invexpr2), s);
75 /* On type error, nothing has been removed; return FAIL to stop the
76 * loop. The error message was given by get_tv_number_chk(). */
80 clear_tv(&vimvars[VV_VAL].vv_tv);
86 /* On type error, nothing has been removed; return FAIL to stop the
87 * loop. The error message was given by get_tv_number_chk(). */
93 clear_tv(&vimvars[VV_VAL].vv_tv);
98 *** ../vim-7.1.112/src/version.c Sun Sep 16 14:20:18 2007
99 --- src/version.c Mon Sep 17 21:33:52 2007
103 { /* Add new patch number below this line */
109 Mental Floss prevents moral decay!
111 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
112 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
113 \\\ download, build and distribute -- http://www.A-A-P.org ///
114 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///