Re: [PATCH 2/2] run-command: use ALLOC_ARRAY

2017-10-02 Thread Stefan Beller
On Sun, Oct 1, 2017 at 8:14 AM, René Scharfe wrote: > Use the macro ALLOC_ARRAY to allocate an array. This is shorter and > eaasier, as it automatically infers the size of elements. easier Thanks, Stefan

[PATCH 2/2] run-command: use ALLOC_ARRAY

2017-10-01 Thread René Scharfe
Use the macro ALLOC_ARRAY to allocate an array. This is shorter and eaasier, as it automatically infers the size of elements. Patch generated with Coccinelle and contrib/coccinelle/array.cocci. Signeg-off-by: Rene Scharfe --- run-command.c | 2 +- 1 file changed, 1 insertion(+),