From dc5df5af6b349c3d9e4ab876864d9dec8096401f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 28 Aug 2012 16:31:23 -0400 Subject: [PATCH] Revert "Minor" This reverts commit 3e0a03978b91994bb7fa7922593cbdfc50878dfc. I know remember why that line is there :). --- src/hb-ot-shape-complex-arabic.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-shape-complex-arabic.cc b/src/hb-ot-shape-complex-arabic.cc index c1ba9b620..857bf559c 100644 --- a/src/hb-ot-shape-complex-arabic.cc +++ b/src/hb-ot-shape-complex-arabic.cc @@ -90,6 +90,7 @@ static hb_codepoint_t get_arabic_shape (hb_codepoint_t u, unsigned int shape) static uint16_t get_ligature (hb_codepoint_t first, hb_codepoint_t second) { + if (unlikely (!second)) return 0; for (unsigned i = 0; i < ARRAY_LENGTH (ligature_table); i++) if (ligature_table[i].first == first) for (unsigned j = 0; j < ARRAY_LENGTH (ligature_table[i].ligatures); j++)