Commit cf9c2905 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-12738 main.default fails with valgrind in buildbot and outside

parent 48c22a68
......@@ -2746,7 +2746,7 @@ static bool fix_vcol_expr(THD *thd, Virtual_column_info *vcol)
{
StringBuffer<MAX_FIELD_WIDTH> str;
vcol->print(&str);
my_error(ER_ERROR_EVALUATING_EXPRESSION, MYF(0), str.c_ptr());
my_error(ER_ERROR_EVALUATING_EXPRESSION, MYF(0), str.c_ptr_safe());
DBUG_RETURN(1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment