changeset 98128:092123c2b01a

(composition_compute_stop_pos): Reset cmp_it->id to -1 at first.
author Kenichi Handa <handa@m17n.org>
date Wed, 10 Sep 2008 12:02:20 +0000
parents e165488c3d30
children 262f9700e3de
files src/composite.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/composite.c	Wed Sep 10 08:53:26 2008 +0000
+++ b/src/composite.c	Wed Sep 10 12:02:20 2008 +0000
@@ -1000,6 +1000,7 @@
   if (endpos > charpos + MAX_NEWLINE_DISTANCE)
     endpos = charpos + MAX_NEWLINE_DISTANCE;
   cmp_it->stop_pos = endpos;
+  cmp_it->id = -1;
   cmp_it->ch = -2;
   if (find_composition (charpos, endpos, &start, &end, &prop, string)
       && COMPOSITION_VALID_P (start, end, prop))