config: initialize the error The error would be uninitialized if we take a snapshot of a config with no backends.
diff --git a/src/config.c b/src/config.c
index 4bd27a8..8a0fb65 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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;