Commit faddcf3c authored by Nayuta Yanagisawa's avatar Nayuta Yanagisawa Committed by Oleksandr Byelkin

Do not check symbol returned (or not and so there is some garbadge) by mb_wc() if mb_wc() failed

parent 12274289
...@@ -70,7 +70,7 @@ ulonglong find_set(TYPELIB *lib, const char *str, size_t length, CHARSET_INFO *c ...@@ -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, if ((mblen= cs->cset->mb_wc(cs, &wc, (const uchar *) pos,
(const uchar *) end)) < 1) (const uchar *) end)) < 1)
mblen= 1; // Not to hang on a wrong multibyte sequence 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; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment