mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
config: Fix two bogus end-of-file checks.
(cherry picked from commit 753aa3054b
)
This commit is contained in:
parent
1eeb2b198a
commit
fafe6583e8
@ -217,7 +217,7 @@ parse_bind(struct option *opt_tree, unsigned char **file, int *line,
|
||||
enum parse_error err = ERROR_NONE;
|
||||
|
||||
*file = skip_white(*file, line);
|
||||
if (!*file) return ERROR_PARSE;
|
||||
if (!**file) return ERROR_PARSE;
|
||||
|
||||
/* Keymap */
|
||||
keymap = option_types[OPT_STRING].read(NULL, file, line);
|
||||
@ -295,7 +295,7 @@ parse_include(struct option *opt_tree, unsigned char **file, int *line,
|
||||
if (!init_string(&dumbstring)) return ERROR_NOMEM;
|
||||
|
||||
*file = skip_white(*file, line);
|
||||
if (!*file) {
|
||||
if (!**file) {
|
||||
done_string(&dumbstring);
|
||||
return ERROR_PARSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user