From 5e55a6d6910e3c942638ad6e9fa1e38befb36c12 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 9 Jan 2020 23:40:40 +0330 Subject: [PATCH] [subset/hvar] minor not super excited about state of the code around, assuming was needed so let's add this may unlikely check also. --- src/hb-ot-var-hvar-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-var-hvar-table.hh b/src/hb-ot-var-hvar-table.hh index f1c8cdfb9..92e43fb8b 100644 --- a/src/hb-ot-var-hvar-table.hh +++ b/src/hb-ot-var-hvar-table.hh @@ -265,11 +265,11 @@ struct hvarvvar_subset_plan_t for (unsigned int i = 0; i < inner_maps.length; i++) inner_maps[i].init (); - if (unlikely (!inner_sets.length || !inner_maps.length)) return; + if (unlikely (!index_map_plans.length || !inner_sets.length || !inner_maps.length)) return; bool retain_adv_map = false; index_map_plans[0].init (*index_maps[0], outer_map, inner_sets, plan); - if (index_maps[0] == &Null(DeltaSetIndexMap)) + if (index_maps[0] == &Null (DeltaSetIndexMap)) { retain_adv_map = plan->retain_gids; outer_map.add (0);