diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-07-01 12:42:55 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-07-01 11:43:43 -0700 |
| commit | 480a0e30a78a6a86e1ea97059f72e4bf4299d052 (patch) | |
| tree | 5efaa6159105c86be84e31b1ecbd460c09d98eea /commit-graph.c | |
| parent | cat-file: fix a memory leak in --batch-command mode (diff) | |
| download | git-480a0e30a78a6a86e1ea97059f72e4bf4299d052.tar.gz git-480a0e30a78a6a86e1ea97059f72e4bf4299d052.zip | |
merge-file: refactor for subsequent memory leak fix
Refactor the code in builtin/merge-file.c to:
* Use the initializer to zero out "mmfs", and use modern C syntax for
the rest.
* Refactor the the inner loop to use a variable and "if/else if"
pattern followed by "return". This will make a change to change it to
a "goto cleanup" pattern smaller.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
