mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-12732 json.json_no_table fails with valgrind in buildbot and
outside. The result_limit variable wasn't always initialized in Item_func_json_array::fix_length_and_dec().
This commit is contained in:
parent
bb71d9abf2
commit
01a4eb8f76
1 changed files with 2 additions and 1 deletions
|
@ -1485,6 +1485,8 @@ void Item_func_json_array::fix_length_and_dec()
|
|||
ulonglong char_length= 2;
|
||||
uint n_arg;
|
||||
|
||||
result_limit= 0;
|
||||
|
||||
if (arg_count == 0)
|
||||
{
|
||||
collation.set(&my_charset_utf8_general_ci);
|
||||
|
@ -1501,7 +1503,6 @@ void Item_func_json_array::fix_length_and_dec()
|
|||
|
||||
fix_char_length_ulonglong(char_length);
|
||||
tmp_val.set_charset(collation.collation);
|
||||
result_limit= 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue