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:
Andrew Cagney 2004-02-16 19:43:12 +00:00
parent c324d747ca
commit fd33e6cbf8
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2004-02-16 Andrew Cagney <cagney@redhat.com> 2004-02-16 Andrew Cagney <cagney@redhat.com>
* printcmd.c (display_command): Check that EXP isn't NULL. Fix
suggested by Joshua Neuheisel
* configure.in: Always check for curses, including pdcurses. * configure.in: Always check for curses, including pdcurses.
Warn, instead of error, when no curses are found. Enable TUI when Warn, instead of error, when no curses are found. Enable TUI when
curses is available. curses is available.

View file

@ -1364,7 +1364,7 @@ display_command (char *exp, int from_tty)
#if defined(TUI) #if defined(TUI)
/* NOTE: cagney/2003-02-13 The `tui_active' was previously /* NOTE: cagney/2003-02-13 The `tui_active' was previously
`tui_version'. */ `tui_version'. */
if (tui_active && *exp == '$') if (tui_active && exp != NULL && *exp == '$')
display_it = (tui_set_layout_for_display_command (exp) == TUI_FAILURE); display_it = (tui_set_layout_for_display_command (exp) == TUI_FAILURE);
#endif #endif