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.4 / 7.4.581 < prev    next >
Encoding:
Internet Message Format  |  2015-01-18  |  1.7 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.581
  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.4.581
  11. Problem:    Compiler warnings for unitinialized variables. (John Little)
  12. Solution:   Initialize the variables.
  13. Files:        src/ops.c
  14.  
  15.  
  16. *** ../vim-7.4.580/src/ops.c    2014-12-17 21:00:44.989871256 +0100
  17. --- src/ops.c    2015-01-18 14:06:49.480786101 +0100
  18. ***************
  19. *** 5663,5670 ****
  20.       int        set_prev = FALSE;
  21.       char_u    *str;
  22.       char_u    **array = NULL;
  23. !     int        new_type;
  24. !     colnr_T    new_width;
  25.   
  26.       /* We only get here (hopefully) if line[0] == '"' */
  27.       str = virp->vir_line + 1;
  28. --- 5663,5670 ----
  29.       int        set_prev = FALSE;
  30.       char_u    *str;
  31.       char_u    **array = NULL;
  32. !     int        new_type = MCHAR; /* init to shut up compiler */
  33. !     colnr_T    new_width = 0; /* init to shut up compiler */
  34.   
  35.       /* We only get here (hopefully) if line[0] == '"' */
  36.       str = virp->vir_line + 1;
  37. ***************
  38. *** 5747,5752 ****
  39. --- 5747,5753 ----
  40.           do_it = FALSE;
  41.       }
  42.       }
  43.       if (do_it)
  44.       {
  45.       /* free y_array[] */
  46. *** ../vim-7.4.580/src/version.c    2015-01-14 21:21:56.924743601 +0100
  47. --- src/version.c    2015-01-18 14:07:36.712268926 +0100
  48. ***************
  49. *** 743,744 ****
  50. --- 743,746 ----
  51.   {   /* Add new patch number below this line */
  52. + /**/
  53. +     581,
  54.   /**/
  55.  
  56. -- 
  57. From "know your smileys":
  58.  :-D    Big smile
  59.  
  60.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  61. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  62. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  63.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  64.