From 30db4e1fc7e83c17191925d5a2633c7afecf0fc8 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Tue, 12 Sep 2017 15:33:30 +0400 Subject: MDEV-13786 compiler complains about uninitialized variable. '=0' added to meke the compiler happy. --- sql/item_jsonfunc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/item_jsonfunc.cc') diff --git a/sql/item_jsonfunc.cc b/sql/item_jsonfunc.cc index 52b3f570844..9295c34aba9 100644 --- a/sql/item_jsonfunc.cc +++ b/sql/item_jsonfunc.cc @@ -873,7 +873,7 @@ longlong Item_func_json_extract::val_int() json_value_types type; char *value; int value_len; - longlong i; + longlong i= 0; if (read_json(NULL, &type, &value, &value_len) != NULL) { -- cgit v1.2.1