aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 266ac6d..3f790cc 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -612,10 +612,10 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
s = NULL;
p = *argptr;
- if (p[0] == '"')
+ if (**argptr == '"')
{
is_quote_enclosed = 1;
- p++;
+ (*argptr)++;
}
else
is_quote_enclosed = 0;