diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,7 +32,7 @@ int read_config_line(FILE *f, char *line, const char **value, int bufsize) | |||
32 | skip_line(f); | 32 | skip_line(f); |
33 | continue; | 33 | continue; |
34 | } | 34 | } |
35 | if (!isname && isblank(c)) | 35 | if (!isname && isspace(c)) |
36 | continue; | 36 | continue; |
37 | 37 | ||
38 | if (c=='=' && !*value) { | 38 | if (c=='=' && !*value) { |
@@ -64,7 +64,7 @@ int cgit_read_config(const char *filename, configfn fn) | |||
64 | if (!f) | 64 | if (!f) |
65 | return -1; | 65 | return -1; |
66 | 66 | ||
67 | while(len = read_config_line(f, line, &value, sizeof(line))) | 67 | while((len = read_config_line(f, line, &value, sizeof(line))) > 0) |
68 | (*fn)(line, value); | 68 | (*fn)(line, value); |
69 | 69 | ||
70 | fclose(f); | 70 | fclose(f); |