Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6004658

Browse files
jacquesgcarlosmn
authored andcommitted
Silence uninitialized warning
1 parent b933465 commit 6004658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ int git_packfile_unpack(
620620
struct pack_chain_elem *elem = NULL, *stack;
621621
git_pack_cache_entry *cached = NULL;
622622
struct pack_chain_elem small_stack[SMALL_STACK_SIZE];
623-
size_t stack_size, elem_pos;
623+
size_t stack_size = 0, elem_pos;
624624
git_otype base_type;
625625

626626
/*

0 commit comments

Comments
 (0)