commit - 802c0f044067c5393fb50a48a6d5be908e286042
commit + 07965a0dfc49b585f5d2d6c2f8f645dfe3ef0d8c
blob - 6ba4490d952e266de433edbadd35609faaeff1bf
blob + 5c97abbfa18aa695ecad63480898a59770e74e9f
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
memset(&packidx, 0, sizeof(packidx));
packidx.hdr.magic = malloc(sizeof(uint32_t));
if (packidx.hdr.magic == NULL)
- return got_error_from_errno("calloc");
+ return got_error_from_errno("malloc");
*packidx.hdr.magic = htobe32(GOT_PACKIDX_V2_MAGIC);
packidx.hdr.version = malloc(sizeof(uint32_t));
if (packidx.hdr.version == NULL) {
for (i = 0; i < nitems(tmpfiles); i++) {
if (tmpfiles[i] != NULL && fclose(tmpfiles[i]) == EOF &&
err == NULL)
- err = got_error_from_errno("close");
+ err = got_error_from_errno("fclose");
}
if (err == NULL)