From: Behdad Esfahbod Date: Thu, 27 May 2010 15:42:34 +0000 (-0400) Subject: Fix loop X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~589 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=226faa58f4e23eb655bebb0eff7206a3024c8d55;p=profile%2Fivi%2Forg.tizen.video-player.git Fix loop --- diff --git a/src/hb-ot-tag.c b/src/hb-ot-tag.c index d1d42f5..2d9db66 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; }