X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=show-index.c;h=4c0ac138aff7b5add73e17fc9c3c4e409fd918e2;hb=608169da5b9e4d4403b2d82e0a48ee3422134a63;hp=63f9da53237d4233bede66a28e4bcf27d5b44af1;hpb=37e3b6104e8b795f70186c6d9138262a0bf5688e;p=git.git diff --git a/show-index.c b/show-index.c index 63f9da532..4c0ac138a 100644 --- a/show-index.c +++ b/show-index.c @@ -48,7 +48,7 @@ int main(int argc, char **argv) unsigned char sha1[20]; uint32_t crc; uint32_t off; - } *entries = xmalloc(nr * sizeof(entries[0])); + } *entries = malloc(nr * sizeof(entries[0])); for (i = 0; i < nr; i++) if (fread(entries[i].sha1, 20, 1, stdin) != 1) die("unable to read sha1 %u/%u", i, nr);