rcfile: properly handle an empty syntax before an 'include' statement
So that in the error message the correct filename gets shown instead of the name of the (first) include file. Reported-by: Brand Huntsman <alpha@qzx.com>master
parent
4bcc224560
commit
073bd3ad6e
|
@ -631,6 +631,8 @@ void parse_includes(char *ptr)
|
||||||
glob_t files;
|
glob_t files;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
check_for_nonempty_syntax();
|
||||||
|
|
||||||
pattern = ptr;
|
pattern = ptr;
|
||||||
if (*pattern == '"')
|
if (*pattern == '"')
|
||||||
pattern++;
|
pattern++;
|
||||||
|
|
Loading…
Reference in New Issue