Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
index-pack: fix compilation with NO_PTHREADS
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index aedac243f0db05351a1ec7ae8b5ed297e51121e8..ca9d790f4d2b0f30ff585df7a6f8edf515e40a20 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-319,7
+319,7
@@
static void add_object_array_with_mode_context(struct object *obj, const char *n
if (nr >= alloc) {
alloc = (alloc + 32) * 2;
-
objects = xrealloc(objects, alloc * sizeof(*objects)
);
+
REALLOC_ARRAY(objects, alloc
);
array->alloc = alloc;
array->objects = objects;
}