* linespec.c (symtab_from_filename): Check for the end of string.

This commit is contained in:
Aleksandar Ristovski 2011-08-26 17:58:57 +00:00
parent 7cf8042268
commit edb2aadf8b
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
* linespec.c (symtab_from_filename): Check for the end of string.
2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
PR mi/11912

View File

@ -1835,6 +1835,8 @@ symtab_from_filename (char **argptr, char *p, int is_quote_enclosed)
}
/* Discard the file name from the arg. */
if (*p1 == '\0')
return file_symtab;
p = p1 + 1;
while (*p == ' ' || *p == '\t')
p++;