mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
config_set: really replace the value on overwrite
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
8ecc5ae5cb
commit
df22949a35
@ -163,8 +163,8 @@ static int config_set(git_config *cfg, const char *name, const char *value)
|
||||
if (tmp == NULL)
|
||||
return GIT_ENOMEM;
|
||||
|
||||
free(var->value);
|
||||
var->value = tmp;
|
||||
free(existing->value);
|
||||
existing->value = tmp;
|
||||
|
||||
return GIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user