diff options
author | monty@mysql.com <> | 2004-05-05 17:05:24 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-05-05 17:05:24 +0300 |
commit | d21d49a32a1689d2c486a449574e120d7a2f60c4 (patch) | |
tree | 3238bd16530e02dbfef96513749a73b7294880f8 /mysys/mf_soundex.c | |
parent | 104fdf607d312bb13f24063d28d993243bf24ca2 (diff) | |
parent | e51887b05082622a1882217b7f8ec8ae7f6b4598 (diff) | |
download | mariadb-git-d21d49a32a1689d2c486a449574e120d7a2f60c4.tar.gz |
Merge with 4.0.19
Diffstat (limited to 'mysys/mf_soundex.c')
-rw-r--r-- | mysys/mf_soundex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/mf_soundex.c b/mysys/mf_soundex.c index 75d9270c5af..27ab4892c57 100644 --- a/mysys/mf_soundex.c +++ b/mysys/mf_soundex.c @@ -52,7 +52,7 @@ void soundex(CHARSET_INFO * cs,register my_string out_pntr, my_string in_pntr, if (remove_garbage) { - while (*in_pntr && my_isspace(cs,*in_pntr)) /* Skipp pre-space */ + while (*in_pntr && !my_isalpha(cs,*in_pntr)) /* Skipp pre-space */ in_pntr++; } *out_pntr++ = map[(uchar)*in_pntr]; /* Copy first letter */ @@ -98,7 +98,7 @@ static char get_scode(CHARSET_INFO * cs,char **ptr, pbool remove_garbage) ch=my_toupper(cs,**ptr); if (ch < 'A' || ch > 'Z') { - if (my_isalpha(cs,ch)) /* If exetended alfa (country spec) */ + if (my_isalpha(cs,ch)) /* If extended alfa (country spec) */ return '0'; /* threat as vokal */ return 0; /* Can't map */ } |