diff options
author | James Bowes <jbowes@dangerouslyinc.com> | 2007-03-27 18:30:19 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-27 16:57:26 -0700 |
commit | aa4cfa8516f33ccde36b6cadf3dab2ddefb972af (patch) | |
tree | bc4d80c56c6fe6cf57754dd64bc72769b9352732 | |
parent | 608d48b2207a6152839a9762c7a66f217bceb440 (diff) | |
download | git-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>
-rw-r--r-- | builtin-read-tree.c | 2 |
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; |