Skip to content

Commit 06a15fc

Browse files
committed
updated for version 7.3.588
Problem: Crash on NULL pointer. Solution: Fix the immediate problem by checking for NULL. (Lech Lorens)
1 parent 97c3b22 commit 06a15fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
588,
717719
/**/
718720
587,
719721
/**/

src/window.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ win_close(win, free_buf)
21842184
}
21852185

21862186
#ifdef FEAT_AUTOCMD
2187-
if (win->w_closing || win->w_buffer->b_closing)
2187+
if (win->w_closing || (win->w_buffer != NULL && win->w_buffer->b_closing))
21882188
return; /* window is already being closed */
21892189
if (win == aucmd_win)
21902190
{
@@ -3723,7 +3723,7 @@ leave_tabpage(new_curbuf)
37233723
enter_tabpage(tp, old_curbuf, trigger_autocmds)
37243724
tabpage_T *tp;
37253725
buf_T *old_curbuf UNUSED;
3726-
int trigger_autocmds UNUSED;
3726+
int trigger_autocmds UNUSED;
37273727
{
37283728
int old_off = tp->tp_firstwin->w_winrow;
37293729
win_T *next_prevwin = tp->tp_prevwin;
@@ -3868,7 +3868,7 @@ goto_tabpage(n)
38683868
void
38693869
goto_tabpage_tp(tp, trigger_autocmds)
38703870
tabpage_T *tp;
3871-
int trigger_autocmds;
3871+
int trigger_autocmds;
38723872
{
38733873
/* Don't repeat a message in another tab page. */
38743874
set_keep_msg(NULL, 0);

0 commit comments

Comments
 (0)