Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/fmt-merge-msg'
[gitweb.git]
/
blob.c
diff --git
a/blob.c
b/blob.c
index 7377008744430cea453010fe93e6c1f51c37fdde..496f270043a617242efa9d27285853feb2597484 100644
(file)
--- a/
blob.c
+++ b/
blob.c
@@
-8,7
+8,7
@@
struct blob *lookup_blob(const unsigned char *sha1)
{
struct object *obj = lookup_object(sha1);
if (!obj) {
- struct blob *ret =
xcalloc(1, sizeof(struct blob)
);
+ struct blob *ret =
alloc_blob_node(
);
created_object(sha1, &ret->object);
ret->object.type = TYPE_BLOB;
return ret;