Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/calloc-pathspec'
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index e1403bec272c332160e0346782436167fa016d93..52d59eba80048f507267002a6a88135ca46376b8 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-280,7
+280,7
@@
static int checkout_paths(const struct checkout_opts *opts,
if (opts->source_tree)
read_tree_some(opts->source_tree, &opts->pathspec);
- ps_matched = xcalloc(
1, opts->pathspec.nr
);
+ ps_matched = xcalloc(
opts->pathspec.nr, 1
);
/*
* Make sure all pathspecs participated in locating the paths