run-command: use ALLOC_ARRAY
authorRené Scharfe <l.s.r@web.de>
Sun, 1 Oct 2017 15:14:31 +0000 (17:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2017 23:42:57 +0000 (08:42 +0900)
commit0e187d758cd4ad0f929b90b04adee7ec19f7fc93
tree7d4318ef7e4d6e6c67c1646edc9cf558183102a5
parent4010f1d1b782eb7585e0e0abcefa794bd5ff29a0
run-command: use ALLOC_ARRAY

Use the macro ALLOC_ARRAY to allocate an array.  This is shorter and
easier, as it automatically infers the size of elements.

Patch generated with Coccinelle and contrib/coccinelle/array.cocci.

Signeg-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c