Skip to contentSkip to conversation

read-tree: use xcalloc

PATCH New James Bowes 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 read-tree: use xcalloc

---

This is the last 'replace blah with xblah' patch I'll send, honest.

 builtin-read-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
builtin-read-tree.c +1 -1
index 82df941..793eae0 100644
@@ -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;
Signature · 1 line
1.5.0.5