commit - 7d76c4e74f889f004513c9aea5398deb37497e9a
commit + b7e0a38461dd7c0fb1261f45640ec533e7305709
blob - 55f61382d4f074d706dc6d052fd5df1313c5b78d
blob + 317a1c4ba802b847110d43e4221424da8e62c8c0
--- lib/pack_create.c
+++ lib/pack_create.c
m = calloc(1, sizeof(*m));
if (m == NULL)
- return got_error_from_errno("malloc");
+ return got_error_from_errno("calloc");
memcpy(&m->id, id, sizeof(m->id));
v.metasz = 64;
v.meta = calloc(v.metasz, sizeof(struct got_pack_meta *));
if (v.meta == NULL) {
- err = got_error_from_errno("reallocarray");
+ err = got_error_from_errno("calloc");
goto done;
}