-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,3 +34,3 @@ int read_config_line(FILE *f, char *line, const char **value, int bufsize) } - if (!isname && isblank(c)) + if (!isname && isspace(c)) continue; @@ -66,3 +66,3 @@ int cgit_read_config(const char *filename, configfn fn) - while(len = read_config_line(f, line, &value, sizeof(line))) + while((len = read_config_line(f, line, &value, sizeof(line))) > 0) (*fn)(line, value); |