Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cvsimport - cleanup of the multi-indexes handling
[gitweb.git]
/
tree.c
diff --git
a/tree.c
b/tree.c
index 64422fd27e3f855b7989bc8cb9a6a0ada7a30472..10236555cc5c127b9b5b2cac8f2514c1b7e87676 100644
(file)
--- a/
tree.c
+++ b/
tree.c
@@
-129,7
+129,7
@@
struct tree *lookup_tree(const unsigned char *sha1)
{
struct object *obj = lookup_object(sha1);
if (!obj) {
- struct tree *ret =
xcalloc(1, sizeof(struct tree)
);
+ struct tree *ret =
alloc_tree_node(
);
created_object(sha1, &ret->object);
ret->object.type = TYPE_TREE;
return ret;