submodule--helper: replace memset() with { 0 }-initialization
commit4b82d75b51eec202dc3d2b64e8de2ad9cb52d638
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 31 Aug 2022 23:17:53 +0000 (1 01:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Sep 2022 16:16:23 +0000 (2 09:16 -0700)
tree2ff4c7bff1f240a42f917e8a0123a5951cdb45f4
parent0b83b2b03a322a7948ddb453ab8766594ca239de
submodule--helper: replace memset() with { 0 }-initialization

Use the less verbose { 0 }-initialization syntax rather than memset()
in builtin/submodule--helper.c, this doesn't make a difference in
terms of behavior, but as we're about to modify adjacent code makes
this more consistent, and lets us avoid worrying about when the
memset() happens v.s. a "goto cleanup".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c