Skip to content

Commit faddcf3

Browse files
nayuta-yanagisawasanja-byelkin
authored andcommitted
Do not check symbol returned (or not and so there is some garbadge) by mb_wc() if mb_wc() failed
1 parent 1227428 commit faddcf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/strfunc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ulonglong find_set(TYPELIB *lib, const char *str, size_t length, CHARSET_INFO *c
7070
if ((mblen= cs->cset->mb_wc(cs, &wc, (const uchar *) pos,
7171
(const uchar *) end)) < 1)
7272
mblen= 1; // Not to hang on a wrong multibyte sequence
73-
if (wc == (my_wc_t) field_separator)
73+
else if (wc == (my_wc_t) field_separator)
7474
break;
7575
}
7676
}

0 commit comments

Comments
 (0)