Skip to content

Commit

Permalink
bugfix: uninitialized variable
Browse files Browse the repository at this point in the history
fixes crashes on win32-debug
  • Loading branch information
vuvova committed Feb 14, 2017
1 parent 8877f1c commit e0fa2ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/item_jsonfunc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e0fa2ce

Please sign in to comment.