Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'configfile.c')
-rw-r--r--configfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/configfile.c b/configfile.c
index 5b0d880..e039109 100644
--- a/configfile.c
+++ b/configfile.c
@@ -39,7 +39,9 @@ static int read_config_line(FILE *f, struct strbuf *name, struct strbuf *value)
/* Skip comments and preceding spaces. */
for(;;) {
- if (c == '#' || c == ';')
+ if (c == EOF)
+ return 0;
+ else if (c == '#' || c == ';')
skip_line(f);
else if (!isspace(c))
break;