Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0

into gluh.mysql.r18.ru:/home/gluh/MySQL-BUGS/mysql-5.0
This commit is contained in:
gluh@gluh.mysql.r18.ru 2005-01-13 16:54:16 +03:00
commit 2a0948ef54

View file

@ -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--;