Commit 5f0527ae by Carlos Martín Nieto

config: initialize the error

The error would be uninitialized if we take a snapshot of a config with
no backends.
parent 19d77ce1
...@@ -139,7 +139,7 @@ int git_config_open_ondisk(git_config **out, const char *path) ...@@ -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 git_config_snapshot(git_config **out, git_config *in)
{ {
int error; int error = 0;
size_t i; size_t i;
file_internal *internal; file_internal *internal;
git_config *config; git_config *config;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment