From 3683fc3453ad0fdd0f0437aaf562dd19a2defa5a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Apr 2005 15:12:44 +0500 Subject: Minor clean-ups for the previous commit. sql/field.cc: Use a separate variable. Otherwise "error" value gets lost after well_formed_length call. strings/ctype-mb.c: Don't return an error if we reached end of line. --- strings/ctype-mb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strings/ctype-mb.c') diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c index dbe3a24324e..cbbd035c631 100644 --- a/strings/ctype-mb.c +++ b/strings/ctype-mb.c @@ -276,7 +276,7 @@ uint my_well_formed_len_mb(CHARSET_INFO *cs, const char *b, const char *e, if ((mblen= cs->cset->mb_wc(cs, &wc, (uchar*) b, (uchar*) e)) <= 0) { - *error= 1; + *error= b < e ? 1 : 0; break; } b+= mblen; -- cgit v1.2.1