We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e0dcb commit b5689c6Copy full SHA for b5689c6
sql/item_jsonfunc.cc
@@ -1352,6 +1352,8 @@ longlong Item_func_json_contains_path::val_int()
1352
bzero(p_found, (arg_count-2) * sizeof(bool));
1353
n_found= arg_count - 2;
1354
}
1355
+ else
1356
+ n_found= 0; /* Jost to prevent 'uninitialized value' warnings */
1357
1358
result= 0;
1359
while (json_get_path_next(&je, &p) == 0)
@@ -2058,7 +2060,7 @@ String *Item_func_json_merge::val_str(String *str)
2058
2060
{
2059
2061
DBUG_ASSERT(fixed == 1);
2062
json_engine_t je1, je2;
- String *js1= args[0]->val_json(&tmp_js1), *js2;
2063
+ String *js1= args[0]->val_json(&tmp_js1), *js2=NULL;
2064
uint n_arg;
2065
2066
if (args[0]->null_value)
0 commit comments