Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'commit-slab.h')
-rw-r--r--commit-slab.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/commit-slab.h b/commit-slab.h
index 9d12ce299c..f84b449413 100644
--- a/commit-slab.h
+++ b/commit-slab.h
@@ -99,8 +99,7 @@ static MAYBE_UNUSED elemtype *slabname## _at_peek(struct slabname *s, \
int i; \
if (!add_if_missing) \
return NULL; \
- s->slab = xrealloc(s->slab, \
- (nth_slab + 1) * sizeof(*s->slab)); \
+ REALLOC_ARRAY(s->slab, nth_slab + 1); \
stat_ ##slabname## realloc++; \
for (i = s->slab_count; i <= nth_slab; i++) \
s->slab[i] = NULL; \