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
Benno Schulenberg 2019-08-18 10:52:03 +02:00
parent 4bcc224560
commit 073bd3ad6e
1 changed files with 2 additions and 0 deletions

View File

@ -631,6 +631,8 @@ void parse_includes(char *ptr)
glob_t files;
int result;
check_for_nonempty_syntax();
pattern = ptr;
if (*pattern == '"')
pattern++;