summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/udf_example.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/udf_example.cc b/sql/udf_example.cc
index dfe8177bfce..7f4417bf8fe 100644
--- a/sql/udf_example.cc
+++ b/sql/udf_example.cc
@@ -284,8 +284,8 @@ char *metaphon(UDF_INIT *initid, UDF_ARGS *args, char *result,
for (n = ntrans + 1, n_end = ntrans + sizeof(ntrans)-2;
word != w_end && n < n_end; word++ )
- if ( my_isalpha ( my_charset_latin1, *word ))
- *n++ = my_toupper ( my_charset_latin1, *word );
+ if ( my_isalpha ( &my_charset_latin1, *word ))
+ *n++ = my_toupper ( &my_charset_latin1, *word );
if ( n == ntrans + 1 ) /* return empty string if 0 bytes */
{