use xcalloc() to allocate zero-initialized memory
commit51a60f5bfbaf1ee7c7a2d2b73eca4f042f7af8cb
authorRené Scharfe <l.s.r@web.de>
Sat, 19 Jul 2014 13:56:26 +0000 (19 15:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Jul 2014 17:30:21 +0000 (21 10:30 -0700)
tree8a5a3866741eca992c4555687305c9246fe20eea
parentebc5da3208824e25a89672a3b91bd13629b215fe
use xcalloc() to allocate zero-initialized memory

Use xcalloc() instead of xmalloc() followed by memset() to allocate
and zero out memory because it's shorter and avoids duplicating the
function parameters.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c
builtin/index-pack.c
compat/mingw.c
pathspec.c