aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/refname.c
diff options
context:
space:
mode:
Diffstat (limited to 'reftable/refname.c')
-rw-r--r--reftable/refname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reftable/refname.c b/reftable/refname.c
index 9573496932..7570e4acf9 100644
--- a/reftable/refname.c
+++ b/reftable/refname.c
@@ -140,8 +140,8 @@ int validate_ref_record_addition(struct reftable_table tab,
{
struct modification mod = {
.tab = tab,
- .add = reftable_calloc(sizeof(char *) * sz),
- .del = reftable_calloc(sizeof(char *) * sz),
+ .add = reftable_calloc(sz, sizeof(*mod.add)),
+ .del = reftable_calloc(sz, sizeof(*mod.del)),
};
int i = 0;
int err = 0;