summaryrefslogtreecommitdiff
path: root/sql/item_jsonfunc.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-09-12 15:33:30 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-09-12 15:33:30 +0400
commit30db4e1fc7e83c17191925d5a2633c7afecf0fc8 (patch)
treebbf2f4109b488d2b2c36b6278212a0cd40c06469 /sql/item_jsonfunc.cc
parent0cd731864e6e4d88b75bfea4f02454871aedb89e (diff)
downloadmariadb-git-30db4e1fc7e83c17191925d5a2633c7afecf0fc8.tar.gz
MDEV-13786 compiler complains about uninitialized variable.
'=0' added to meke the compiler happy.
Diffstat (limited to 'sql/item_jsonfunc.cc')
-rw-r--r--sql/item_jsonfunc.cc2
1 files changed, 1 insertions, 1 deletions
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)
{