From b98c7c3f1fc8581ce9a0f40ae25aee5e1b2b3106 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 29 Oct 2017 14:52:52 -0600 Subject: [PATCH] [post] Minor --- src/hb-ot-post-table.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index 472e5f7a7..4213093b9 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -130,9 +130,6 @@ struct post if (glyph >= glyphNameIndex->len) return false; - if (!buf_len) - return true; - unsigned int index = glyphNameIndex->array[glyph]; if (index < NUM_FORMAT1_NAMES) { @@ -146,8 +143,7 @@ struct post if (index >= index_to_offset.len) return false; - unsigned int offset = index_to_offset[index]; - + unsigned int offset = index_to_offset.array[index]; const uint8_t *data = pool + offset; unsigned int name_length = *data;