Commit e0fa2ce4 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: uninitialized variable

fixes crashes on win32-debug
parent 8877f1c3
......@@ -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();
......
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