[subset] Fix warning about uninitialized use of end_cp.

This commit is contained in:
Garret Rieger 2021-12-01 10:14:10 -08:00 committed by Behdad Esfahbod
parent 6c81cd9543
commit d8635dfe5a
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ struct CmapSubtableFormat4
hb_requires (hb_is_iterator (Iterator))> hb_requires (hb_is_iterator (Iterator))>
void to_ranges (Iterator it, Writer& range_writer) void to_ranges (Iterator it, Writer& range_writer)
{ {
hb_codepoint_t start_cp, prev_run_start_cp, run_start_cp, end_cp, last_gid; hb_codepoint_t start_cp, prev_run_start_cp, run_start_cp, end_cp, last_gid = 0;
int run_length, delta, prev_delta; int run_length, delta, prev_delta = 0;
enum { enum {
FIRST_SUB_RANGE, FIRST_SUB_RANGE,