lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
a166c93
To: vim_dev@googlegroups.com
a166c93
Subject: Patch 7.4.317
a166c93
Fcc: outbox
a166c93
From: Bram Moolenaar <Bram@moolenaar.net>
a166c93
Mime-Version: 1.0
a166c93
Content-Type: text/plain; charset=UTF-8
a166c93
Content-Transfer-Encoding: 8bit
a166c93
------------
a166c93
a166c93
Patch 7.4.317
a166c93
Problem:    Crash when starting gvim.  Issue 230.
a166c93
Solution:   Check for a pointer to be NULL. (Christian Brabandt)
a166c93
Files:	    src/window.c
a166c93
a166c93
a166c93
*** ../vim-7.4.316/src/window.c	2014-05-28 13:42:59.884078184 +0200
a166c93
--- src/window.c	2014-06-12 11:36:53.619441640 +0200
a166c93
***************
a166c93
*** 4721,4728 ****
a166c93
  win_free_lsize(wp)
a166c93
      win_T	*wp;
a166c93
  {
a166c93
!     vim_free(wp->w_lines);
a166c93
!     wp->w_lines = NULL;
a166c93
  }
a166c93
  
a166c93
  /*
a166c93
--- 4721,4732 ----
a166c93
  win_free_lsize(wp)
a166c93
      win_T	*wp;
a166c93
  {
a166c93
!     /* TODO: why would wp be NULL here? */
a166c93
!     if (wp != NULL)
a166c93
!     {
a166c93
! 	vim_free(wp->w_lines);
a166c93
! 	wp->w_lines = NULL;
a166c93
!     }
a166c93
  }
a166c93
  
a166c93
  /*
a166c93
*** ../vim-7.4.316/src/version.c	2014-05-29 14:36:26.156862577 +0200
a166c93
--- src/version.c	2014-06-12 11:37:37.907443315 +0200
a166c93
***************
a166c93
*** 736,737 ****
a166c93
--- 736,739 ----
a166c93
  {   /* Add new patch number below this line */
a166c93
+ /**/
a166c93
+     317,
a166c93
  /**/
a166c93
a166c93
-- 
a166c93
press CTRL-ALT-DEL for more information
a166c93
a166c93
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
a166c93
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
a166c93
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
a166c93
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///