mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
Backport from 5.0
This commit is contained in:
parent
ebefcc616a
commit
d28aa5cc15
1 changed files with 1 additions and 1 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue