diff options
Diffstat (limited to 'pack-objects.h')
-rw-r--r-- | pack-objects.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pack-objects.h b/pack-objects.h index 741e6f862d..a89f76e5b1 100644 --- a/pack-objects.h +++ b/pack-objects.h @@ -364,7 +364,7 @@ static inline void oe_set_tree_depth(struct packing_data *pack, unsigned int tree_depth) { if (!pack->tree_depth) - ALLOC_ARRAY(pack->tree_depth, pack->nr_alloc); + CALLOC_ARRAY(pack->tree_depth, pack->nr_alloc); pack->tree_depth[e - pack->objects] = tree_depth; } @@ -381,7 +381,7 @@ static inline void oe_set_layer(struct packing_data *pack, unsigned char layer) { if (!pack->layer) - ALLOC_ARRAY(pack->layer, pack->nr_alloc); + CALLOC_ARRAY(pack->layer, pack->nr_alloc); pack->layer[e - pack->objects] = layer; } |