]> git.ipfire.org Git - thirdparty/git.git/commit
compat/regex: fix argument order to calloc(3)
authorJunio C Hamano <gitster@pobox.com>
Sun, 12 May 2024 06:25:04 +0000 (23:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 May 2024 17:19:08 +0000 (10:19 -0700)
commitf01301aabe1771473b7c97fec72a566963c5fe34
tree008d6a3c3af03ba4f8b25208d886998775284793
parent668f2d53613ac8fd373926ebe219f2c29112d93e
compat/regex: fix argument order to calloc(3)

Windows compiler suddenly started complaining that calloc(3) takes
its arguments in <nmemb, size> order.  Indeed, there are many calls
that has their arguments in a _wrong_ order.

Fix them all.

A sample breakage can be seen at

  https://github.com/git/git/actions/runs/9046793153/job/24857988702#step:4:272

Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regcomp.c
compat/regex/regex_internal.c
compat/regex/regexec.c