* tui/tui-data.c (tui_prev_win): Guard against NULL.
This commit is contained in:
parent
38e654e2b5
commit
37715c4c6b
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
|
||||
|
||||
* tui/tui-data.c (tui_prev_win): Guard against NULL.
|
||||
|
||||
2007-11-12 Markus Deuling <deuling@de.ibm.com>
|
||||
|
||||
* gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
|
||||
|
|
|
@ -370,7 +370,8 @@ tui_prev_win (struct tui_win_info *cur_win)
|
|||
type = cur_win->generic.type - 1;
|
||||
while (type != cur_win->generic.type && (prev == NULL))
|
||||
{
|
||||
if (tui_win_list[type]->generic.is_visible)
|
||||
if (tui_win_list[type]
|
||||
&& tui_win_list[type]->generic.is_visible)
|
||||
prev = tui_win_list[type];
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue