]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.214
- new
[packages/vim.git] / 7.2.214
CommitLineData
ef0610d1
AG
1To: vim-dev@vim.org
2Subject: Patch 7.2.214
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.214
11Problem: Crash with complete function for user command. (Andy Wokula)
12Solution: Avoid using a NULL pointer (Dominique Pelle)
13Files: src/ex_getln.c
14
15
16*** ../vim-7.2.213/src/ex_getln.c 2009-05-16 17:29:37.000000000 +0200
17--- src/ex_getln.c 2009-06-24 16:57:28.000000000 +0200
18***************
19*** 4874,4887 ****
20 /* Loop over the items in the list. */
21 for (li = retlist->lv_first; li != NULL; li = li->li_next)
22 {
23! if (li->li_tv.v_type != VAR_STRING)
24! continue; /* Skip non-string items */
25
26 if (ga_grow(&ga, 1) == FAIL)
27 break;
28
29 ((char_u **)ga.ga_data)[ga.ga_len] =
30! vim_strsave(li->li_tv.vval.v_string);
31 ++ga.ga_len;
32 }
33 list_unref(retlist);
34--- 4874,4887 ----
35 /* Loop over the items in the list. */
36 for (li = retlist->lv_first; li != NULL; li = li->li_next)
37 {
38! if (li->li_tv.v_type != VAR_STRING || li->li_tv.vval.v_string == NULL)
39! continue; /* Skip non-string items and empty strings */
40
41 if (ga_grow(&ga, 1) == FAIL)
42 break;
43
44 ((char_u **)ga.ga_data)[ga.ga_len] =
45! vim_strsave(li->li_tv.vval.v_string);
46 ++ga.ga_len;
47 }
48 list_unref(retlist);
49*** ../vim-7.2.213/src/version.c 2009-06-24 16:49:50.000000000 +0200
50--- src/version.c 2009-06-24 17:03:58.000000000 +0200
51***************
52*** 678,679 ****
53--- 678,681 ----
54 { /* Add new patch number below this line */
55+ /**/
56+ 214,
57 /**/
58
59--
60He who laughs last, thinks slowest.
61
62 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
63/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
64\\\ download, build and distribute -- http://www.A-A-P.org ///
65 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.045547 seconds and 4 git commands to generate.