Commit 619623b8 authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks: SET GLOBAL rocksdb_strict_collation_exceptions=null crashes

A trivial fix
parent 131d8582
......@@ -10517,7 +10517,7 @@ void rocksdb_set_collation_exception_list(THD *const thd,
rdb_set_collation_exception_list(val == nullptr ? "" : val);
//psergey-todo: what is the purpose of the below??
const char *val_copy= my_strdup(val, MYF(0));
const char *val_copy= val? my_strdup(val, MYF(0)): nullptr;
my_free(*static_cast<char**>(var_ptr));
*static_cast<const char**>(var_ptr) = val_copy;
}
......
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