Bug#20783: Valgrind uninitialised warning in test case ctype_uca

Two functions have different ideas of what a string should look like;
one of them reads memory it assumes the other one may have written.
And "if you assume ..."
  
We now use a more defensive variety of the assuming function, this fixes
a warning thrown by the valgrind tool.
This commit is contained in:
tnurnberg@mysql.com 2006-07-03 21:41:15 +02:00
parent caa3fcf673
commit b3e368df19

View File

@ -3303,7 +3303,7 @@ longlong Item_func_regex::val_int()
}
}
null_value=0;
return my_regexec(&preg,res->c_ptr(),0,(my_regmatch_t*) 0,0) ? 0 : 1;
return my_regexec(&preg,res->c_ptr_safe(),0,(my_regmatch_t*) 0,0) ? 0 : 1;
}