summaryrefslogtreecommitdiffstats
path: root/thirdparty/harfbuzz/src/hb-ot-cff-common.hh
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-ot-cff-common.hh')
-rw-r--r--thirdparty/harfbuzz/src/hb-ot-cff-common.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/harfbuzz/src/hb-ot-cff-common.hh b/thirdparty/harfbuzz/src/hb-ot-cff-common.hh
index a2f90c8f5e..923a32b26f 100644
--- a/thirdparty/harfbuzz/src/hb-ot-cff-common.hh
+++ b/thirdparty/harfbuzz/src/hb-ot-cff-common.hh
@@ -94,10 +94,10 @@ struct CFFIndex
for (const auto &_ : +it)
{
unsigned len = _.length;
+ if (!len)
+ continue;
if (len <= 1)
{
- if (!len)
- continue;
*ret++ = *_.arrayZ;
continue;
}