unpack_trees(): protect the handcrafted in-core index from read_cache()
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 2475de9fa837596303284157e08b3080d64351ee..884fae826cb8c296520aecbc8c23d9848dacb606 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -222,7 +222,8 @@ struct index_state {
        struct cache_tree *cache_tree;
        time_t timestamp;
        void *alloc;
-       unsigned name_hash_initialized : 1;
+       unsigned name_hash_initialized : 1,
+                initialized : 1;
        struct hash_table name_hash;
 };