From 012695400751148f3f10b2e3302b61adaff28714 Mon Sep 17 00:00:00 2001 From: schu Date: Thu, 23 Feb 2012 16:51:07 +0100 Subject: [PATCH] Fix -Wuninitialized warning Signed-off-by: schu --- src/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iterator.c b/src/iterator.c index c2b88ab84..8255d4c9a 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;