author | Brandon Casey <casey@nrlssc.navy.mil> | |
Mon, 6 Oct 2008 23:39:10 +0000 (18:39 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 8 Oct 2008 14:30:59 +0000 (07:30 -0700) | ||
commit | 19d4b416f429ac2d3f4c225aaf1af8761bcb03dd | |
tree | 6675797b5e141a32cf8c4d551be3dddc5e5fc020 | tree | snapshot |
parent | 276328ffb87cefdc515bee5f09916aea6e0244ed | commit | diff |
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>
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 | diff | blob | history | |
builtin-pack-objects.c | diff | blob | history | |
builtin-unpack-objects.c | diff | blob | history | |
merge-tree.c | diff | blob | history | |
remote.c | diff | blob | history |