mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 22:55:47 +00:00
variable 'i' is used uninitialized whenever 'if' condition is true
This commit is contained in:
parent
7414acf5f9
commit
e2b3dc16b9
@ -349,9 +349,10 @@ done:
|
|||||||
static int submodules_from_index(git_strmap *map, git_index *idx, git_config *cfg)
|
static int submodules_from_index(git_strmap *map, git_index *idx, git_config *cfg)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
git_iterator *i;
|
git_iterator *i = NULL;
|
||||||
const git_index_entry *entry;
|
const git_index_entry *entry;
|
||||||
git_strmap *names = 0;
|
git_strmap *names = 0;
|
||||||
|
|
||||||
git_strmap_alloc(&names);
|
git_strmap_alloc(&names);
|
||||||
if ((error = load_submodule_names(names, cfg)))
|
if ((error = load_submodule_names(names, cfg)))
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
Reference in New Issue
Block a user