Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
xdiff: minor changes to match libxdiff-0.21
[gitweb.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index 91913332709eb67252a776ddd1995e183a1a5bf5..5f70a5b8104078b139d2ec87b7aebc6791b4d253 100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-19,7
+19,7
@@
struct tag *lookup_tag(const unsigned char *sha1)
{
struct object *obj = lookup_object(sha1);
if (!obj) {
- struct tag *ret =
xcalloc(1, sizeof(struct tag)
);
+ struct tag *ret =
alloc_tag_node(
);
created_object(sha1, &ret->object);
ret->object.type = TYPE_TAG;
return ret;