diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2005-01-14 16:23:32 +0300 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2005-01-14 16:23:32 +0300 |
commit | b06801534a79d9cfe1e077f8ed0a4dfd3c779877 (patch) | |
tree | e11acdf20202d6f19096db9e8100d2ccae38df33 /strings | |
parent | 653db58bee2755c80642549b4536832ddaa200eb (diff) | |
download | mariadb-git-b06801534a79d9cfe1e077f8ed0a4dfd3c779877.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--; |