0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.3.588

Problem:    Crash on NULL pointer.
Solution:   Fix the immediate problem by checking for NULL. (Lech Lorens)
This commit is contained in:
Bram Moolenaar
2012-07-06 16:39:47 +02:00
parent e25865a7f3
commit 756287da38
2 changed files with 5 additions and 3 deletions

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
588,
/**/ /**/
587, 587,
/**/ /**/

View File

@@ -2184,7 +2184,7 @@ win_close(win, free_buf)
} }
#ifdef FEAT_AUTOCMD #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 */ return; /* window is already being closed */
if (win == aucmd_win) if (win == aucmd_win)
{ {
@@ -3723,7 +3723,7 @@ leave_tabpage(new_curbuf)
enter_tabpage(tp, old_curbuf, trigger_autocmds) enter_tabpage(tp, old_curbuf, trigger_autocmds)
tabpage_T *tp; tabpage_T *tp;
buf_T *old_curbuf UNUSED; buf_T *old_curbuf UNUSED;
int trigger_autocmds UNUSED; int trigger_autocmds UNUSED;
{ {
int old_off = tp->tp_firstwin->w_winrow; int old_off = tp->tp_firstwin->w_winrow;
win_T *next_prevwin = tp->tp_prevwin; win_T *next_prevwin = tp->tp_prevwin;
@@ -3868,7 +3868,7 @@ goto_tabpage(n)
void void
goto_tabpage_tp(tp, trigger_autocmds) goto_tabpage_tp(tp, trigger_autocmds)
tabpage_T *tp; tabpage_T *tp;
int trigger_autocmds; int trigger_autocmds;
{ {
/* Don't repeat a message in another tab page. */ /* Don't repeat a message in another tab page. */
set_keep_msg(NULL, 0); set_keep_msg(NULL, 0);