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>
Этот коммит содержится в:
родитель
4bcc224560
Коммит
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++;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user