projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Reworked external diff interface.
[git.git]
/
object.c
diff --git
a/object.c
b/object.c
index
cfa2337
..
91bbc6e
100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-52,7
+52,7
@@
void created_object(unsigned char *sha1, struct object *obj)
if (obj_allocs == nr_objs) {
obj_allocs = alloc_nr(obj_allocs);
if (obj_allocs == nr_objs) {
obj_allocs = alloc_nr(obj_allocs);
- objs = realloc(objs, obj_allocs * sizeof(struct object *));
+ objs =
x
realloc(objs, obj_allocs * sizeof(struct object *));
}
/* Insert it into the right place */
}
/* Insert it into the right place */
@@
-75,7
+75,7
@@
void add_ref(struct object *refer, struct object *target)
}
target->used = 1;
}
target->used = 1;
- p = malloc(sizeof(*p));
+ p =
x
malloc(sizeof(*p));
p->item = target;
p->next = NULL;
*pp = p;
p->item = target;
p->next = NULL;
*pp = p;