summaryrefslogtreecommitdiff
path: root/object-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/object-file.c b/object-file.c
index 19fc4afa43..4d4280543e 100644
--- a/object-file.c
+++ b/object-file.c
@@ -325,14 +325,13 @@ static struct cached_object {
} *cached_objects;
static int cached_object_nr, cached_object_alloc;
-static struct cached_object empty_tree = {
- /* no oid needed; we'll look it up manually based on the_hash_algo */
- .type = OBJ_TREE,
- .buf = "",
-};
-
static struct cached_object *find_cached_object(const struct object_id *oid)
{
+ static struct cached_object empty_tree = {
+ /* no oid needed; we'll look it up manually based on the_hash_algo */
+ .type = OBJ_TREE,
+ .buf = "",
+ };
int i;
struct cached_object *co = cached_objects;