mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 06:02:19 +00:00
orite C89
This commit is contained in:
parent
2bb1c7aa26
commit
1d00960334
@ -83,12 +83,12 @@ void *git_cache_try_store(git_cache *cache, void *_entry)
|
||||
}
|
||||
|
||||
{
|
||||
git_cached_obj *node = cache->nodes[hash & cache->size_mask];
|
||||
|
||||
/* increase the refcount on this object, because
|
||||
* the cache now owns it */
|
||||
git_cached_obj_incref(entry);
|
||||
|
||||
git_cached_obj *node = cache->nodes[hash & cache->size_mask];
|
||||
|
||||
if (node == NULL) {
|
||||
cache->nodes[hash & cache->size_mask] = entry;
|
||||
} else if (git_oid_cmp(&node->oid, &entry->oid) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user