Bug#31081 server crash in regexp function

Additional fix for valgrind warning
This commit is contained in:
bar@mysql.com/bar.myoffice.izhnet.ru 2007-10-24 12:08:33 +05:00
parent 35b20797d9
commit 5cfd557fad

View File

@ -4255,7 +4255,7 @@ Item_func_regex::regcomp(bool send_error)
res= &conv;
}
if ((error= my_regcomp(&preg, res->c_ptr(),
if ((error= my_regcomp(&preg, res->c_ptr_safe(),
regex_lib_flags, regex_lib_charset)))
{
if (send_error)