1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

bugfix: uninitialized variable

fixes crashes on win32-debug
This commit is contained in:
Sergei Golubchik
2017-02-14 18:04:35 +01:00
parent 8877f1c325
commit e0fa2ce40f

View File

@ -2978,14 +2978,13 @@ String *Item_func_json_format::val_str(String *str)
{
String *js= args[0]->val_str(&tmp_js);
json_engine_t je;
int tab_size;
int tab_size= 4;
if ((null_value= args[0]->null_value))
return 0;
if (fmt == DETAILED)
{
tab_size= 4;
if (arg_count > 1)
{
tab_size= args[1]->val_int();