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:
Carlos Martín Nieto 2014-05-30 13:06:34 +02:00
parent 19d77ce109
commit 5f0527aeac

View File

@ -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;