summaryrefslogtreecommitdiff
path: root/t/t2015-checkout-unborn.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2021-03-06 12:26:19 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-08 09:45:04 -0800
commit241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1 (patch)
tree2912c1f5896fb1356a4ba09fa48129e1a5dd310f /t/t2015-checkout-unborn.sh
parentMerge branch 'tb/ci-run-cocci-with-18.04' into maint (diff)
downloadtgif-241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1.tar.xz
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 't/t2015-checkout-unborn.sh')
0 files changed, 0 insertions, 0 deletions