diff options
author | gluh@gluh.mysql.r18.ru <> | 2005-01-14 16:23:32 +0300 |
---|---|---|
committer | gluh@gluh.mysql.r18.ru <> | 2005-01-14 16:23:32 +0300 |
commit | d28aa5cc15143000c56ab266e5bc2b4fd21c2de8 (patch) | |
tree | e11acdf20202d6f19096db9e8100d2ccae38df33 /strings | |
parent | ebefcc616ac083d90bc0f02273c41a5f07cb196e (diff) | |
download | mariadb-git-d28aa5cc15143000c56ab266e5bc2b4fd21c2de8.tar.gz |
Backport from 5.0
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-mb.c | 2 |
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--; |