orite C89
diff --git a/src/cache.c b/src/cache.c
index 6780175..cbd360a 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -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) {