diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-09-01 01:17:53 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-09-02 09:16:23 -0700 |
| commit | 4b82d75b51eec202dc3d2b64e8de2ad9cb52d638 (patch) | |
| tree | 2ff4c7bff1f240a42f917e8a0123a5951cdb45f4 /builtin/grep.c | |
| parent | 0b83b2b03a322a7948ddb453ab8766594ca239de (diff) | |
| download | git-4b82d75b51eec202dc3d2b64e8de2ad9cb52d638.tar.gz | |
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>
Diffstat (limited to 'builtin/grep.c')
0 files changed, 0 insertions, 0 deletions
