diff --git a/src/hb-ot-tag.c b/src/hb-ot-tag.c index d1d42f562c2b590c42ae52a98a451dd8efd95ad6..2d9db6628a7482f2e385a57258baf8364fa3210f 100644 --- a/src/hb-ot-tag.c +++ b/src/hb-ot-tag.c @@ -157,8 +157,8 @@ hb_ot_tag_to_script (hb_tag_t tag) int i; for (i = 0; i < ARRAY_LENGTH (ot_scripts); i++) { - const hb_tag_t *p = ot_scripts[i]; - while (*p) + const hb_tag_t *p; + for (p = ot_scripts[i]; *p; p++) if (tag == *p) return i; }