summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorgluh@gluh.mysql.r18.ru <>2005-01-14 16:23:32 +0300
committergluh@gluh.mysql.r18.ru <>2005-01-14 16:23:32 +0300
commitd28aa5cc15143000c56ab266e5bc2b4fd21c2de8 (patch)
treee11acdf20202d6f19096db9e8100d2ccae38df33 /strings
parentebefcc616ac083d90bc0f02273c41a5f07cb196e (diff)
downloadmariadb-git-d28aa5cc15143000c56ab266e5bc2b4fd21c2de8.tar.gz
Backport from 5.0
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-mb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c
index bf69fe683ae..731fc460cef 100644
--- a/strings/ctype-mb.c
+++ b/strings/ctype-mb.c
@@ -274,7 +274,7 @@ uint my_well_formed_len_mb(CHARSET_INFO *cs,
my_wc_t wc;
int mblen;
- if ((mblen= cs->cset->mb_wc(cs, &wc, (uchar*) b, (uchar*) e)) <0)
+ if ((mblen= cs->cset->mb_wc(cs, &wc, (uchar*) b, (uchar*) e)) <= 0)
break;
b+= mblen;
pos--;