orite C89

This commit is contained in:
Justin Spahr-Summers 2012-12-09 02:40:16 -08:00
parent 2bb1c7aa26
commit 1d00960334

View File

@ -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) {