Skip to content

Commit dad3c31

Browse files
author
Edward Thomson
authored
Merge pull request libgit2#4095 from mplough/master
Fix uninitialized variable warning
2 parents 8df1cfc + d0c418c commit dad3c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/submodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static int submodules_from_index(git_strmap *map, git_index *idx, git_config *cf
401401
static int submodules_from_head(git_strmap *map, git_tree *head, git_config *cfg)
402402
{
403403
int error;
404-
git_iterator *i;
404+
git_iterator *i = NULL;
405405
const git_index_entry *entry;
406406
git_strmap *names = 0;
407407
git_strmap_alloc(&names);

0 commit comments

Comments
 (0)