mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 15:25:33 +02:00
Do not check symbol returned (or not and so there is some garbadge) by mb_wc() if mb_wc() failed
This commit is contained in:
parent
122742897b
commit
faddcf3c39
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ ulonglong find_set(TYPELIB *lib, const char *str, size_t length, CHARSET_INFO *c
|
|||
if ((mblen= cs->cset->mb_wc(cs, &wc, (const uchar *) pos,
|
||||
(const uchar *) end)) < 1)
|
||||
mblen= 1; // Not to hang on a wrong multibyte sequence
|
||||
if (wc == (my_wc_t) field_separator)
|
||||
else if (wc == (my_wc_t) field_separator)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue