From 807934d08345c69ae31e0a0a1fcf7c92431d6204 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 18 Nov 2014 13:07:37 +0400 Subject: MDEV-7086 main.ctype_cp932 fails in buildbot on a valgrind build Removing a redundant and wrong condition which could access beyond the pattern string range. --- strings/ctype-bin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strings/ctype-bin.c') diff --git a/strings/ctype-bin.c b/strings/ctype-bin.c index 3ca4ba2b430..2e699db0bd3 100644 --- a/strings/ctype-bin.c +++ b/strings/ctype-bin.c @@ -395,7 +395,7 @@ int my_wildcmp_bin_impl(CHARSET_INFO *cs, if (tmp <= 0) return(tmp); } - } while (str != str_end && wildstr[0] != w_many); + } while (str != str_end); return(-1); } } -- cgit v1.2.1