OSDN Git Service

2004-02-16 Andrew Cagney <cagney@redhat.com>
authorcagney <cagney>
Mon, 16 Feb 2004 19:43:11 +0000 (19:43 +0000)
committercagney <cagney>
Mon, 16 Feb 2004 19:43:11 +0000 (19:43 +0000)
* printcmd.c (display_command): Check that EXP isn't NULL.  Fix
suggested by Joshua Neuheisel

gdb/ChangeLog
gdb/printcmd.c

index 6f624ce..9650674 100644 (file)
@@ -1,5 +1,8 @@
 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.
        Warn, instead of error, when no curses are found.  Enable TUI when
        curses is available.
index 1cea480..62ca095 100644 (file)
@@ -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