Commit 012695400751148f3f10b2e3302b61adaff28714

schu 2012-02-23T16:51:07

Fix -Wuninitialized warning Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
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;