Commit 1d009603 by Justin Spahr-Summers

orite C89

parent 2bb1c7aa
...@@ -83,12 +83,12 @@ void *git_cache_try_store(git_cache *cache, void *_entry) ...@@ -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 /* increase the refcount on this object, because
* the cache now owns it */ * the cache now owns it */
git_cached_obj_incref(entry); git_cached_obj_incref(entry);
git_cached_obj *node = cache->nodes[hash & cache->size_mask];
if (node == NULL) { if (node == NULL) {
cache->nodes[hash & cache->size_mask] = entry; cache->nodes[hash & cache->size_mask] = entry;
} else if (git_oid_cmp(&node->oid, &entry->oid) == 0) { } else if (git_oid_cmp(&node->oid, &entry->oid) == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment