mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 18:11:43 +00:00
Ensure that non-error is not propagated
This commit is contained in:
parent
efde422553
commit
c48e87006c
@ -295,6 +295,7 @@ int git_remote_save(const git_remote *remote)
|
|||||||
int error = git_config_delete(config, git_buf_cstr(&buf));
|
int error = git_config_delete(config, git_buf_cstr(&buf));
|
||||||
if (error == GIT_ENOTFOUND) {
|
if (error == GIT_ENOTFOUND) {
|
||||||
error = 0;
|
error = 0;
|
||||||
|
giterr_clear();
|
||||||
}
|
}
|
||||||
if (error < 0) {
|
if (error < 0) {
|
||||||
git_buf_free(&buf);
|
git_buf_free(&buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user