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.3 / 7.3.108 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  3.3 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.108
  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.3.108
  11. Problem:    Useless check for NULL when calling vim_free().
  12. Solution:   Remove the check. (Dominique Pelle)
  13. Files:        src/eval.c, src/ex_cmds.c, src/os_win32.c
  14.  
  15.  
  16. *** ../vim-7.3.107/src/eval.c    2011-01-22 01:13:33.000000000 +0100
  17. --- src/eval.c    2011-01-30 21:37:53.000000000 +0100
  18. ***************
  19. *** 5106,5114 ****
  20.           else
  21.           ret = OK;
  22.       }
  23. !     if (alias != NULL)
  24. !         vim_free(alias);
  25.       }
  26.   
  27.       *arg = skipwhite(*arg);
  28. --- 5106,5112 ----
  29.           else
  30.           ret = OK;
  31.       }
  32. !     vim_free(alias);
  33.       }
  34.   
  35.       *arg = skipwhite(*arg);
  36. ***************
  37. *** 19807,19813 ****
  38.           EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
  39.           return;
  40.       }
  41. !     /* Don't allow hiding a function.  When "v" is not NULL we migth be
  42.        * assigning another function to the same var, the type is checked
  43.        * below. */
  44.       if (v == NULL && function_exists(name))
  45. --- 19805,19811 ----
  46.           EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
  47.           return;
  48.       }
  49. !     /* Don't allow hiding a function.  When "v" is not NULL we might be
  50.        * assigning another function to the same var, the type is checked
  51.        * below. */
  52.       if (v == NULL && function_exists(name))
  53. *** ../vim-7.3.107/src/ex_cmds.c    2010-12-17 18:06:00.000000000 +0100
  54. --- src/ex_cmds.c    2011-01-30 21:37:53.000000000 +0100
  55. ***************
  56. *** 5412,5418 ****
  57.       vir_T    *virp;
  58.       int        force;
  59.   {
  60. !     if (old_sub != NULL && force)
  61.       vim_free(old_sub);
  62.       if (force || old_sub == NULL)
  63.       old_sub = viminfo_readstring(virp, 1, TRUE);
  64. --- 5412,5418 ----
  65.       vir_T    *virp;
  66.       int        force;
  67.   {
  68. !     if (force)
  69.       vim_free(old_sub);
  70.       if (force || old_sub == NULL)
  71.       old_sub = viminfo_readstring(virp, 1, TRUE);
  72. *** ../vim-7.3.107/src/os_win32.c    2010-12-17 20:23:56.000000000 +0100
  73. --- src/os_win32.c    2011-01-30 21:37:53.000000000 +0100
  74. ***************
  75. *** 1886,1893 ****
  76.       cb->BufferSize.X = cb->Info.dwSize.X;
  77.       cb->BufferSize.Y = cb->Info.dwSize.Y;
  78.       NumCells = cb->BufferSize.X * cb->BufferSize.Y;
  79. !     if (cb->Buffer != NULL)
  80. !         vim_free(cb->Buffer);
  81.       cb->Buffer = (PCHAR_INFO)alloc(NumCells * sizeof(CHAR_INFO));
  82.       if (cb->Buffer == NULL)
  83.           return FALSE;
  84. --- 1886,1892 ----
  85.       cb->BufferSize.X = cb->Info.dwSize.X;
  86.       cb->BufferSize.Y = cb->Info.dwSize.Y;
  87.       NumCells = cb->BufferSize.X * cb->BufferSize.Y;
  88. !     vim_free(cb->Buffer);
  89.       cb->Buffer = (PCHAR_INFO)alloc(NumCells * sizeof(CHAR_INFO));
  90.       if (cb->Buffer == NULL)
  91.           return FALSE;
  92. *** ../vim-7.3.107/src/version.c    2011-01-22 21:25:07.000000000 +0100
  93. --- src/version.c    2011-02-01 13:47:07.000000000 +0100
  94. ***************
  95. *** 716,717 ****
  96. --- 716,719 ----
  97.   {   /* Add new patch number below this line */
  98. + /**/
  99. +     108,
  100.   /**/
  101.  
  102. -- 
  103. hundred-and-one symptoms of being an internet addict:
  104. 173. You keep tracking down the email addresses of all your friends
  105.      (even childhood friends).
  106.  
  107.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  108. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  109. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  110.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  111.