aboutsummaryrefslogtreecommitdiffstats
path: root/configfile.c
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-04-02 21:00:51 +0200
committerjustanothercatgirl <sotov@twistea.su>2025-04-02 21:00:51 +0200
commitd946c8cf11385f5766e827ae71b3fc798750a335 (patch)
tree52105e039563e264cbaf84a0bda6cd1df7945b30 /configfile.c
parent09d24d7cd0b7e85633f2f43808b12871bb209d69 (diff)
Added default_index config parameter.HEADmaster
Note: currently breaks repos that contain no readme
Diffstat (limited to 'configfile.c')
-rw-r--r--configfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/configfile.c b/configfile.c
index e039109..56b5f5b 100644
--- a/configfile.c
+++ b/configfile.c
@@ -79,8 +79,9 @@ int parse_configfile(const char *filename, configfile_value_fn fn)
if (!(f = fopen(filename, "r")))
return -1;
nesting++;
- while (read_config_line(f, &name, &value))
+ while (read_config_line(f, &name, &value)) {
fn(name.buf, value.buf);
+ }
nesting--;
fclose(f);
strbuf_release(&name);