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.0 / 7.0.064 < prev    next >
Encoding:
Internet Message Format  |  2006-08-21  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.064
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.064
  11. Problem:    Using uninitialized variable. (Tony Mechelynck)
  12. Solution:   When not used set "temp" to zero.  Also avoid a warning for
  13.         "files" in ins_compl_dictionaries().
  14. Files:        src/edit.c
  15.  
  16.  
  17. *** ../vim-7.0.063/src/edit.c    Wed Aug 16 21:26:19 2006
  18. --- src/edit.c    Thu Aug 17 22:28:34 2006
  19. ***************
  20. *** 2760,2765 ****
  21. --- 2760,2766 ----
  22.       }
  23.       else
  24.   # endif
  25. +         if (count > 0)    /* avoid warning for using "files" uninit */
  26.       {
  27.           ins_compl_files(count, files, thesaurus, flags,
  28.                               ®match, buf, &dir);
  29. ***************
  30. *** 3222,3228 ****
  31.       int        c;
  32.   {
  33.       char_u    *ptr;
  34. -     int        temp;
  35.       int        want_cindent;
  36.       int        retval = FALSE;
  37.   
  38. --- 3223,3228 ----
  39. ***************
  40. *** 3378,3383 ****
  41. --- 3378,3384 ----
  42.           if (compl_curr_match != NULL || compl_leader != NULL || c == Ctrl_E)
  43.           {
  44.           char_u    *p;
  45. +         int    temp = 0;
  46.   
  47.           /*
  48.            * If any of the original typed text has been changed, eg when
  49. *** ../vim-7.0.063/src/version.c    Wed Aug 16 22:03:35 2006
  50. --- src/version.c    Tue Aug 22 19:56:05 2006
  51. ***************
  52. *** 668,669 ****
  53. --- 668,671 ----
  54.   {   /* Add new patch number below this line */
  55. + /**/
  56. +     64,
  57.   /**/
  58.  
  59. -- 
  60. hundred-and-one symptoms of being an internet addict:
  61. 200. You really believe in the concept of a "paperless" office.
  62.  
  63.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  64. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  65. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  66.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  67.