Skip to content
Permalink
Browse files
Do not check symbol returned (or not and so there is some garbadge) b…
…y mb_wc() if mb_wc() failed
  • Loading branch information
nayuta-yanagisawa authored and sanja-byelkin committed Aug 10, 2022
1 parent 1227428 commit faddcf3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;
}
}

0 comments on commit faddcf3

Please sign in to comment.