From fafe6583e842f830dc0ab81f976b56e58ea8121d Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 3 Feb 2008 02:53:26 +0200 Subject: [PATCH] config: Fix two bogus end-of-file checks. (cherry picked from commit 753aa3054bd228e1602b61e05d6ca14c0f17d83f) --- src/config/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/conf.c b/src/config/conf.c index 6d61a9610..41b7e2311 100644 --- a/src/config/conf.c +++ b/src/config/conf.c @@ -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; }