summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-simple.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c
index 84bfcb0b171..58535cbfc69 100644
--- a/strings/ctype-simple.c
+++ b/strings/ctype-simple.c
@@ -27,8 +27,7 @@ int my_strnxfrm_simple(CHARSET_INFO * cs,
const uchar *src, uint srclen)
{
uchar *map= cs->sort_order;
- DBUG_ASSERT(len >= srclen);
- len= min(len,srclen);
+ set_if_smaller(len, srclen);
if (dest != src)
{
const uchar *end;