aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 1976a5d..eabe44c 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 == '\\')
{