From aa4cfa8516f33ccde36b6cadf3dab2ddefb972af Mon Sep 17 00:00:00 2001 From: James Bowes Date: Tue, 27 Mar 2007 18:30:19 -0400 Subject: [PATCH] read-tree: use xcalloc Signed-off-by: James Bowes Signed-off-by: Junio C Hamano --- builtin-read-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-read-tree.c b/builtin-read-tree.c index 82df94101a..793eae0a5f 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; -- 2.11.4.GIT