about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)
39 39
40 /* Skip comments and preceding spaces. */ 40 /* Skip comments and preceding spaces. */
41 for(;;) { 41 for(;;) {
42 if (c == '#' || c == ';') 42 if (c == EOF)
43 return 0;
44 else if (c == '#' || c == ';')
43 skip_line(f); 45 skip_line(f);
44 else if (!isspace(c)) 46 else if (!isspace(c))
45 break; 47 break;