mirror of
https://github.com/git/git.git
synced 2024-12-03 23:14:23 +08:00
read-tree: use xcalloc
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
608d48b220
commit
aa4cfa8516
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user