From 88575670e7968c1c3863ea3b51dc7d4d7fc316f7 Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 4 Apr 2003 18:06:04 +0000 Subject: (set_active_frame): fix NULL pointer crash bug. --- src/split.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/split.c b/src/split.c index e62c432..63e63ba 100644 --- a/src/split.c +++ b/src/split.c @@ -821,7 +821,14 @@ set_active_frame (rp_window_frame *frame) win = find_window_number (frame->win_number); old_frame = current_frame(); - old_win = find_window_number (old_frame->win_number); + if (old_frame) + { + old_win = find_window_number (old_frame->win_number); + } + else + { + old_win = NULL; + } /* Make the switch */ give_window_focus (win, old_win); -- cgit v1.2.3