mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-08 14:06:16 +00:00
config: initialize the error
The error would be uninitialized if we take a snapshot of a config with no backends.
This commit is contained in:
parent
19d77ce109
commit
5f0527aeac
@ -139,7 +139,7 @@ int git_config_open_ondisk(git_config **out, const char *path)
|
||||
|
||||
int git_config_snapshot(git_config **out, git_config *in)
|
||||
{
|
||||
int error;
|
||||
int error = 0;
|
||||
size_t i;
|
||||
file_internal *internal;
|
||||
git_config *config;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user