aboutsummaryrefslogtreecommitdiff
path: root/builtin-read-tree.c
diff options
context:
space:
mode:
authorJames Bowes <jbowes@dangerouslyinc.com>2007-03-27 18:30:19 -0400
committerJunio C Hamano <junkio@cox.net>2007-03-27 16:57:26 -0700
commitaa4cfa8516f33ccde36b6cadf3dab2ddefb972af (patch)
treebc4d80c56c6fe6cf57754dd64bc72769b9352732 /builtin-read-tree.c
parent608d48b2207a6152839a9762c7a66f217bceb440 (diff)
downloadgit-aa4cfa8516f33ccde36b6cadf3dab2ddefb972af.tar.gz
git-aa4cfa8516f33ccde36b6cadf3dab2ddefb972af.tar.xz
read-tree: use xcalloc
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-read-tree.c')
-rw-r--r--builtin-read-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-read-tree.c b/builtin-read-tree.c
index 82df94101..793eae0a5 100644
--- a/builtin-read-tree.c
+++ b/builtin-read-tree.c
@@ -184,7 +184,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
if (opts.dir)
die("more than one --exclude-per-directory are given.");
- dir = calloc(1, sizeof(*opts.dir));
+ dir = xcalloc(1, sizeof(*opts.dir));
dir->show_ignored = 1;
dir->exclude_per_dir = arg + 24;
opts.dir = dir;