diff --git a/gfx/ots/src/ots.cc b/gfx/ots/src/ots.cc index f4751c861331..21612c49affa 100644 --- a/gfx/ots/src/ots.cc +++ b/gfx/ots/src/ots.cc @@ -581,7 +581,7 @@ bool ProcessGeneric(ots::OpenTypeFile *header, uint32_t signature, const std::map::const_iterator it = table_map.find(Tag(table_parsers[i].tag)); - ots::TableAction action = GetTableAction(header, Tag(table_parsers[i].tag)); + ots::TableAction action = GetTableAction(it->first); if (it == table_map.end()) { if (table_parsers[i].required && action == ots::TABLE_ACTION_SANITIZE) { return OTS_FAILURE_MSG_TAG("missing required table", table_parsers[i].tag);