diff options
Diffstat (limited to 'patch-ids.c')
-rw-r--r-- | patch-ids.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/patch-ids.c b/patch-ids.c index 437f29e42c..176c47d967 100644 --- a/patch-ids.c +++ b/patch-ids.c @@ -99,7 +99,8 @@ struct patch_id *has_commit_patch_id(struct commit *commit, if (init_patch_id_entry(&patch, commit, ids)) return NULL; - return hashmap_get(&ids->patches, &patch.ent, NULL); + return hashmap_get_entry(&ids->patches, &patch, NULL, + struct patch_id, ent); } struct patch_id *add_commit_patch_id(struct commit *commit, |