home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.2 / 7.2.214 < prev    next >
Encoding:
Internet Message Format  |  2009-06-23  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.214
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.214
  11. Problem:    Crash with complete function for user command. (Andy Wokula)
  12. Solution:   Avoid using a NULL pointer (Dominique Pelle)
  13. Files:        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. -- 
  60. He 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    ///
  66.