summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-09-25 15:29:03 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-09-26 12:12:08 +0200
commite640a77c9f1b0fb111553b5ee3c3be7c51d11bd5 (patch)
treedc3b73232393d2b65e851dcf2b23c64a538be155
parent7629ea5d8d3cf2278d89a41beba3caf0488f67b3 (diff)
downloadlibgit2-e640a77c9f1b0fb111553b5ee3c3be7c51d11bd5.tar.gz
Silence uninitialized warning
-rw-r--r--src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index 7c1cfe03e..516e0f3ca 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -620,7 +620,7 @@ int git_packfile_unpack(
struct pack_chain_elem *elem = NULL, *stack;
git_pack_cache_entry *cached = NULL;
struct pack_chain_elem small_stack[SMALL_STACK_SIZE];
- size_t stack_size, elem_pos;
+ size_t stack_size = 0, elem_pos;
git_otype base_type;
/*