4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash with complete function for user command. (Andy Wokula)
12 Solution: Avoid using a NULL pointer (Dominique Pelle)
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
20 /* Loop over the items in the list. */
21 for (li = retlist->lv_first; li != NULL; li = li->li_next)
23 ! if (li->li_tv.v_type != VAR_STRING)
24 ! continue; /* Skip non-string items */
26 if (ga_grow(&ga, 1) == FAIL)
29 ((char_u **)ga.ga_data)[ga.ga_len] =
30 ! vim_strsave(li->li_tv.vval.v_string);
35 /* Loop over the items in the list. */
36 for (li = retlist->lv_first; li != NULL; li = li->li_next)
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 */
41 if (ga_grow(&ga, 1) == FAIL)
44 ((char_u **)ga.ga_data)[ga.ga_len] =
45 ! vim_strsave(li->li_tv.vval.v_string);
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
54 { /* Add new patch number below this line */
60 He who laughs last, thinks slowest.
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 ///