diff options
author | Edward Thomson <ethomson@github.com> | 2017-01-27 17:56:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-27 17:56:52 +0000 |
commit | dad3c319d76f58bc600b53650723d0d3cc9e6feb (patch) | |
tree | 2b547ee22de2835a904a0980008a86057845ca45 | |
parent | 8df1cfc9d710db48469e2ea34152cfe03d4bf515 (diff) | |
parent | d0c418c0bb150cce670bbfd1d9343f91f894125a (diff) | |
download | libgit2-dad3c319d76f58bc600b53650723d0d3cc9e6feb.tar.gz |
Merge pull request #4095 from mplough/master
Fix uninitialized variable warning
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index fc3dcb406..1c17075bf 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -401,7 +401,7 @@ done: static int submodules_from_head(git_strmap *map, git_tree *head, 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); |