]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.588 v7.3.588
authorBram Moolenaar <Bram@vim.org>
Fri, 6 Jul 2012 14:39:47 +0000 (16:39 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 6 Jul 2012 14:39:47 +0000 (16:39 +0200)
Problem:    Crash on NULL pointer.
Solution:   Fix the immediate problem by checking for NULL. (Lech Lorens)

src/version.c
src/window.c

index 1314e41e60334c2905ae5990e2d4f40f39464e7d..2676fa7fc8712ec50206f70f0d153c60feeae071 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    588,
 /**/
     587,
 /**/
index cf45e90b0610be5b6cacba981675931054af1a76..c65f49d790e300aff192d8b3d6ef9f8ef3b060b4 100644 (file)
@@ -2184,7 +2184,7 @@ win_close(win, free_buf)
     }
 
 #ifdef FEAT_AUTOCMD
-    if (win->w_closing || win->w_buffer->b_closing)
+    if (win->w_closing || (win->w_buffer != NULL && win->w_buffer->b_closing))
        return; /* window is already being closed */
     if (win == aucmd_win)
     {
@@ -3723,7 +3723,7 @@ leave_tabpage(new_curbuf)
 enter_tabpage(tp, old_curbuf, trigger_autocmds)
     tabpage_T  *tp;
     buf_T      *old_curbuf UNUSED;
-    int         trigger_autocmds UNUSED;
+    int                trigger_autocmds UNUSED;
 {
     int                old_off = tp->tp_firstwin->w_winrow;
     win_T      *next_prevwin = tp->tp_prevwin;
@@ -3868,7 +3868,7 @@ goto_tabpage(n)
     void
 goto_tabpage_tp(tp, trigger_autocmds)
     tabpage_T  *tp;
-    int         trigger_autocmds;
+    int                trigger_autocmds;
 {
     /* Don't repeat a message in another tab page. */
     set_keep_msg(NULL, 0);