Merge branch 'sg/test-lib-simplify-expr-away' into HEAD
[gitweb.git] / submodule-config.c
index 92502b594d055bbf99fd203175d7dffaf8dfb732..8476e0fa0f89c968e95182fd44211c0018a4b1f8 100644 (file)
@@ -392,8 +392,7 @@ static const struct submodule *config_from(struct submodule_cache *cache,
                struct hashmap_iter iter;
                struct submodule_entry *entry;
 
-               hashmap_iter_init(&cache->for_name, &iter);
-               entry = hashmap_iter_next(&iter);
+               entry = hashmap_iter_first(&cache->for_name, &iter);
                if (!entry)
                        return NULL;
                return entry->config;