Commit e2b3dc16 by Etienne Samson

variable 'i' is used uninitialized whenever 'if' condition is true

parent 7414acf5
......@@ -349,9 +349,10 @@ done:
static int submodules_from_index(git_strmap *map, git_index *idx, git_config *cfg)
{
int error;
git_iterator *i;
git_iterator *i = NULL;
const git_index_entry *entry;
git_strmap *names = 0;
git_strmap_alloc(&names);
if ((error = load_submodule_names(names, cfg)))
goto done;
......
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