Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'da/user-useconfigonly' into HEAD
[gitweb.git]
/
submodule-config.c
diff --git
a/submodule-config.c
b/submodule-config.c
index 92502b594d055bbf99fd203175d7dffaf8dfb732..8476e0fa0f89c968e95182fd44211c0018a4b1f8 100644
(file)
--- a/
submodule-config.c
+++ b/
submodule-config.c
@@
-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;