summaryrefslogtreecommitdiff
path: root/contrib/fast-import/import-tars.perl
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2021-03-06 11:26:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-08 17:45:04 (GMT)
commit241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1 (patch)
tree2912c1f5896fb1356a4ba09fa48129e1a5dd310f /contrib/fast-import/import-tars.perl
parent59ec22464f6c2b170b05f287e00740ea2288fe5c (diff)
downloadgit-241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1.zip
git-241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1.tar.gz
git-241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1.tar.bz2
fix xcalloc() argument order
Pass the number of elements first and ther size second, as expected by xcalloc(). Provide a semantic patch, which was actually used to generate the rest of this patch. The semantic patch would generate flip-flop diffs if both arguments are sizeofs. We don't have such a case, and it's hard to imagine the usefulness of such an allocation. If it ever occurs then we could deal with it by duplicating the rule in the semantic patch to make it cancel itself out, or we could change the code to use CALLOC_ARRAY. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/fast-import/import-tars.perl')
0 files changed, 0 insertions, 0 deletions