diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-05-30 08:38:28 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-05-30 10:35:12 +0200 |
| commit | cf5030a37f33c42f6369732b0e328e42ef48432c (patch) | |
| tree | 8cb79b53a9538b9ea988cc78bed95509bd800f08 /tests/diff/diff_helpers.c | |
| parent | b2a389c87019c729ffaf179a338236dd129b473c (diff) | |
| download | libgit2-cf5030a37f33c42f6369732b0e328e42ef48432c.tar.gz | |
submodule: refactor loading submodule names
The function `load_submodule_names` was always being called with a
newly allocated string map, which was then getting filled by the
function. Move the string map allocation into `load_submodule_names`,
instead, and pass the whole map back to the caller in case no error
occurs. This change helps to avoid misuse by handing in pre-populated
maps.
Diffstat (limited to 'tests/diff/diff_helpers.c')
0 files changed, 0 insertions, 0 deletions
