diff --git a/src/hb-aat-layout-common-private.hh b/src/hb-aat-layout-common-private.hh index fc04941af..a421a4cf0 100644 --- a/src/hb-aat-layout-common-private.hh +++ b/src/hb-aat-layout-common-private.hh @@ -698,11 +698,15 @@ struct hb_aat_apply_context_t : hb_buffer_t *buffer; hb_sanitize_context_t sanitizer; + /* Unused. For debug tracing only. */ + unsigned int lookup_index; + unsigned int debug_depth; + inline hb_aat_apply_context_t (hb_font_t *font_, hb_buffer_t *buffer_, hb_blob_t *table) : font (font_), face (font->face), buffer (buffer_), - sanitizer () + sanitizer (), lookup_index (0), debug_depth (0) { sanitizer.init (table); sanitizer.num_glyphs = face->get_num_glyphs (); diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 4e75dd3a7..f16f6a4ad 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -280,7 +280,7 @@ struct ContextualSubtable { TRACE_SANITIZE (this); - unsigned int num_entries; + unsigned int num_entries = 0; if (unlikely (!machine.sanitize (c, &num_entries))) return false; unsigned int num_lookups = 0;