From 55ddc14d5cc6f3abe3afef41ce5315332017fa6a Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 16 Feb 2004 19:43:12 +0000 Subject: 2004-02-16 Andrew Cagney * printcmd.c (display_command): Check that EXP isn't NULL. Fix suggested by Joshua Neuheisel --- gdb/printcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 1cea480b3f3..62ca0956812 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1364,7 +1364,7 @@ display_command (char *exp, int from_tty) #if defined(TUI) /* NOTE: cagney/2003-02-13 The `tui_active' was previously `tui_version'. */ - if (tui_active && *exp == '$') + if (tui_active && exp != NULL && *exp == '$') display_it = (tui_set_layout_for_display_command (exp) == TUI_FAILURE); #endif -- cgit v1.2.1