* linespec.c (decode_line_1): Skip argptr over a leading

double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
This commit is contained in:
Keith Seitz
2001-03-14 18:36:45 +00:00
parent 3cc122b3fe
commit 91c1720e68
2 changed files with 7 additions and 2 deletions

View File

@@ -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;