From fdee1cbbb43a668f50bc6496dae125786e78536b Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 28 Apr 2004 14:19:02 +0200 Subject: bug#3556 - soundex --- sql/item_strfunc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/item_strfunc.cc') diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 31c2dc943e5..ac70ef2cbd3 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1422,7 +1422,7 @@ String *Item_func_soundex::val_str(String *str) char *to= (char *) tmp_value.ptr(); char *from= (char *) res->ptr(), *end=from+res->length(); - while (from != end && isspace(*from)) // Skip pre-space + while (from != end && !isalpha(*from)) // Skip pre-space from++; /* purecov: inspected */ if (from == end) return &empty_string; // No alpha characters. -- cgit v1.2.1