diff options
Diffstat (limited to 'src/tsort.c')
-rw-r--r-- | src/tsort.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tsort.c b/src/tsort.c index b92e52056..e59819204 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -186,8 +186,7 @@ static int resize(struct tsort_store *store, size_t new_size) if (store->alloc < new_size) { void **tempstore; - GITERR_CHECK_ALLOC_MULTIPLY(new_size, sizeof(void *)); - tempstore = git__realloc(store->storage, new_size * sizeof(void *)); + tempstore = git__reallocarray(store->storage, new_size, sizeof(void *)); /** * Do not propagate on OOM; this will abort the sort and |