summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_window.c')
-rw-r--r--textscreen/txt_window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 7ba11778..ee668175 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -43,7 +43,10 @@ void TXT_SetWindowAction(txt_window_t *window,
// Maintain parent pointer.
- action->widget.parent = &window->table.widget;
+ if (action != NULL)
+ {
+ action->widget.parent = &window->table.widget;
+ }
}
txt_window_t *TXT_NewWindow(char *title)