Replace xmalloc/memset(0) pairs with xcalloc
commit19d4b416f429ac2d3f4c225aaf1af8761bcb03dd
authorBrandon Casey <casey@nrlssc.navy.mil>
Mon, 6 Oct 2008 23:39:10 +0000 (6 18:39 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 8 Oct 2008 14:30:59 +0000 (8 07:30 -0700)
tree6675797b5e141a32cf8c4d551be3dddc5e5fc020
parent276328ffb87cefdc515bee5f09916aea6e0244ed
Replace xmalloc/memset(0) pairs with xcalloc

Many call sites immediately initialize allocated memory with zero after
calling xmalloc. A single call to xcalloc can replace this two-call
sequence.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-merge.c
builtin-pack-objects.c
builtin-unpack-objects.c
merge-tree.c
remote.c