summaryrefslogtreecommitdiff
path: root/src/config_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config_file.c')
-rw-r--r--src/config_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config_file.c b/src/config_file.c
index 570f286c8..088f6190d 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -270,7 +270,8 @@ static int file_foreach(
}
}
- git_strmap_foreach(b->values, key, var,
+ git_strmap_iter iter = git_strmap_begin(b->values);
+ while (!(git_strmap_next(&key, (void**) &var, &iter, b->values) < 0)) {
for (; var != NULL; var = next_var) {
next_var = CVAR_LIST_NEXT(var);
@@ -285,7 +286,7 @@ static int file_foreach(
goto cleanup;
}
}
- );
+ }
cleanup:
if (regexp != NULL)