mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
2004-02-16 Andrew Cagney <cagney@redhat.com>
* printcmd.c (display_command): Check that EXP isn't NULL. Fix suggested by Joshua Neuheisel
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user