* [PATCH] read-tree: use xcalloc
@ 2007-03-27 22:30 James Bowes
0 siblings, 0 replies; only message in thread
From: James Bowes @ 2007-03-27 22:30 UTC (permalink / raw)
To: junkio; +Cc: git
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
---
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(-)
diff --git a/builtin-read-tree.c b/builtin-read-tree.c
index 82df941..793eae0 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;
--
1.5.0.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-27 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27 22:30 [PATCH] read-tree: use xcalloc James Bowes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).