The initial value of best_matchptr is not truly used, but since we do
always compute 'in_next - best_matchptr', assign an initial value which
avoids undefined behavior.
{
const u8 *in_next = in_begin + cur_pos;
u32 depth_remaining = max_search_depth;
{
const u8 *in_next = in_begin + cur_pos;
u32 depth_remaining = max_search_depth;
- const u8 *best_matchptr = best_matchptr; /* uninitialized */
+ const u8 *best_matchptr = in_next;
mf_pos_t cur_node3, cur_node4;
u32 hash3, hash4;
u32 next_seq3, next_seq4;
mf_pos_t cur_node3, cur_node4;
u32 hash3, hash4;
u32 next_seq3, next_seq4;