diff options
Diffstat (limited to 'gdb/main.c')
-rw-r--r-- | gdb/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/main.c b/gdb/main.c index 1976a5d43be..eabe44c9401 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -898,7 +898,6 @@ execute_command (p, from_tty) int from_tty; { register struct cmd_list_element *c; - register struct command_line *cmdlines; register enum language flang; static int warned = 0; @@ -2072,7 +2071,7 @@ echo_command (text, from_tty) register int c; if (text) - while (c = *p++) + while ((c = *p++) != '\0') { if (c == '\\') { |