{"thread":{"id":"7438","subject":"[PATCH] read-tree: use xcalloc","startedAt":"2007-03-27T22:30:19Z","lastAt":"2007-03-27T22:30:19Z","messageCount":1,"participants":["James Bowes"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"38193","messageId":"11750346193538-git-send-email-jbowes@dangerouslyinc.com","threadId":"7438","inReplyTo":null,"subject":"[PATCH] read-tree: use xcalloc","fromName":"James Bowes","fromEmail":"jbowes@dangerouslyinc.com","sentAt":"2007-03-27T22:30:19Z","receivedAt":"2007-03-27T22:30:19Z","isPatch":true,"sender":{"key":"jbowes@dangerouslyinc.com","avatar":"https://gravatar.com/avatar/a2fe98c66b2b47a9fa9d2ba92ff949d54c3208b1f8acc2e745b4b84ae3c4483a?d=mp&s=160"},"body":"Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>\n---\n\nThis is the last 'replace blah with xblah' patch I'll send, honest.\n\n builtin-read-tree.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-read-tree.c b/builtin-read-tree.c\nindex 82df941..793eae0 100644\n--- a/builtin-read-tree.c\n+++ b/builtin-read-tree.c\n@@ -184,7 +184,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)\n \t\t\tif (opts.dir)\n \t\t\t\tdie(\"more than one --exclude-per-directory are given.\");\n \n-\t\t\tdir = calloc(1, sizeof(*opts.dir));\n+\t\t\tdir = xcalloc(1, sizeof(*opts.dir));\n \t\t\tdir->show_ignored = 1;\n \t\t\tdir->exclude_per_dir = arg + 24;\n \t\t\topts.dir = dir;\n-- \n1.5.0.5\n"}]}