summaryrefslogtreecommitdiff
path: root/strings/ctype-mb.c
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-04-06 15:12:44 +0500
committerunknown <bar@mysql.com>2005-04-06 15:12:44 +0500
commit3683fc3453ad0fdd0f0437aaf562dd19a2defa5a (patch)
treeffab232fafade80d54e8318a2f471935917df81a /strings/ctype-mb.c
parent97b26d3b93abef87bc6918af326202467212e103 (diff)
downloadmariadb-git-3683fc3453ad0fdd0f0437aaf562dd19a2defa5a.tar.gz
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.
Diffstat (limited to 'strings/ctype-mb.c')
-rw-r--r--strings/ctype-mb.c2
1 files changed, 1 insertions, 1 deletions
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;