diff options
| author | Patrick Steinhardt <ps@pks.im> | 2017-05-19 08:34:32 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2017-05-19 08:34:32 +0200 |
| commit | 57121a2377b695c4377e734f81f52abda97fc5b7 (patch) | |
| tree | 53b166177bd44a6ecc7e1388bc337561e60c9a35 /src/commit.c | |
| parent | e526fbc703af90a651a3aeb0b3147df45dd0d44a (diff) | |
| download | libgit2-57121a2377b695c4377e734f81f52abda97fc5b7.tar.gz | |
repository: clear out-parameter instead of freeing it
The `path` out-parameter of `find_repo` is being sanitized initially
such that we do not try to append to existing content. The sanitization
is done via `git_buf_free`, though, which forces us to needlessly
reallocate the buffer later in the function. Fix this by using
`git_buf_clear` instead.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions
