Merge pull request #572 from schu/fix-warning-uninitialized Fix -Wuninitialized warning
diff --git a/src/iterator.c b/src/iterator.c
index c2b88ab..8255d4c 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -109,7 +109,7 @@ static int tree_iterator__advance(
{
int error = GIT_SUCCESS;
tree_iterator *ti = (tree_iterator *)self;
- const git_tree_entry *te;
+ const git_tree_entry *te = NULL;
if (entry != NULL)
*entry = NULL;