summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorschu <schu-github@schulog.org>2012-02-23 16:51:07 +0100
committerschu <schu-github@schulog.org>2012-02-23 16:51:07 +0100
commit012695400751148f3f10b2e3302b61adaff28714 (patch)
treea35dca7df1e567e7a266d65b09034d87bbf57b26 /src/iterator.c
parent36d72a5125b28a381b240b1bc506bcf2d59c94b7 (diff)
downloadlibgit2-012695400751148f3f10b2e3302b61adaff28714.tar.gz
Fix -Wuninitialized warning
Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c2
1 files changed, 1 insertions, 1 deletions
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;