diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-16 19:43:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-16 19:43:12 +0000 |
commit | 55ddc14d5cc6f3abe3afef41ce5315332017fa6a (patch) | |
tree | 56587323f332f507030c096dd8e90d0221480a5c /gdb/printcmd.c | |
parent | e84e067f7d9ad3890a1d577d2bec8d5d077fa1d8 (diff) | |
download | gdb-55ddc14d5cc6f3abe3afef41ce5315332017fa6a.tar.gz |
2004-02-16 Andrew Cagney <cagney@redhat.com>
* printcmd.c (display_command): Check that EXP isn't NULL. Fix
suggested by Joshua Neuheisel
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |