aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2007-11-13 17:00:11 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2007-11-13 17:00:11 +0000
commit37715c4c6b8a790bae97327987e0fc32f6866adf (patch)
treebc96703ba262fcfc4d3982a2a3e21b69c21d2069 /gdb/tui
parent38e654e2b5c850f6092d67941b7872df9f389caa (diff)
downloadgdb-37715c4c6b8a790bae97327987e0fc32f6866adf.zip
gdb-37715c4c6b8a790bae97327987e0fc32f6866adf.tar.gz
gdb-37715c4c6b8a790bae97327987e0fc32f6866adf.tar.bz2
* tui/tui-data.c (tui_prev_win): Guard against NULL.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
index 190c687..6014dc5 100644
--- a/gdb/tui/tui-data.c
+++ b/gdb/tui/tui-data.c
@@ -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
{