summaryrefslogtreecommitdiff
path: root/pango/mini-fribidi
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-10 21:28:47 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-10 21:28:47 +0000
commit49c7df604e7b84310da42c9431ca96818d440b1b (patch)
treee6baac30a86f174f1b5050e0ecf3803d53d1f7df /pango/mini-fribidi
parent366a6f92ebe654194dd4b6c4caf13f9ab594024c (diff)
downloadpango-49c7df604e7b84310da42c9431ca96818d440b1b.tar.gz
Fix read of unitialized memory (#66067, Hidetoshi Tajima)
Thu Jan 10 16:27:24 2002 Owen Taylor <otaylor@redhat.com> * pango/mini-fribidi/fribidi.c: Fix read of unitialized memory (#66067, Hidetoshi Tajima)
Diffstat (limited to 'pango/mini-fribidi')
-rw-r--r--pango/mini-fribidi/fribidi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/mini-fribidi/fribidi.c b/pango/mini-fribidi/fribidi.c
index ec3900e4..e8c4c10f 100644
--- a/pango/mini-fribidi/fribidi.c
+++ b/pango/mini-fribidi/fribidi.c
@@ -150,7 +150,7 @@ run_length_encode_types (FriBidiCharType *char_type, gint type_len)
current.pos = -1;
for (i = 0; i <= type_len; i++)
{
- if (char_type[i] != current.type || i == type_len)
+ if (i == type_len || char_type[i] != current.type)
{
if (current.pos >= 0)
{