]> wimlib.net Git - wimlib/blobdiff - include/wimlib/hc_matchfinder.h
hc_matchfinder: use well-defined initialization of best_matchptr
[wimlib] / include / wimlib / hc_matchfinder.h
index aa2e45421031e0222f0f9d864dbc2497746657cc..b0c8c65a44acf09ad4efba0889b275ce0a4b4b46 100644 (file)
@@ -197,7 +197,7 @@ TEMPLATED(hc_matchfinder_longest_match)(struct TEMPLATED(hc_matchfinder) * const
 {
        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;