Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
read-tree: use xcalloc
author
James Bowes
<jbowes@dangerouslyinc.com>
Tue, 27 Mar 2007 22:30:19 +0000
(18:30 -0400)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 27 Mar 2007 23:57:26 +0000
(16:57 -0700)
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-read-tree.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
608d48b
)
diff --git
a/builtin-read-tree.c
b/builtin-read-tree.c
index 82df94101a20a9ea9c06cd6d6ce8db56d8a7de18..793eae0a5f4cc3d21788a3642f156410ce1ad89d 100644
(file)
--- 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 =
x
calloc(1, sizeof(*opts.dir));
dir->show_ignored = 1;
dir->exclude_per_dir = arg + 24;
opts.dir = dir;