summaryrefslogtreecommitdiff
path: root/sql/sql_cte.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-01 14:10:22 +0200
committerMonty <monty@mariadb.org>2018-01-01 14:10:22 +0200
commit322c637c1c7717b5d33e4d7670a39eae17040e3c (patch)
tree385fe35df07f997cef688af8735c941f19cd8ada /sql/sql_cte.cc
parent7703095d2e26a15d4ecbd3683f9779b97f851c98 (diff)
downloadmariadb-git-322c637c1c7717b5d33e4d7670a39eae17040e3c.tar.gz
Fixed compiler warnings about possible uninitialized variables
Diffstat (limited to 'sql/sql_cte.cc')
-rw-r--r--sql/sql_cte.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cte.cc b/sql/sql_cte.cc
index e1bd455830d..601c1928d58 100644
--- a/sql/sql_cte.cc
+++ b/sql/sql_cte.cc
@@ -664,7 +664,7 @@ void With_element::move_anchors_ahead()
{
st_select_lex *next_sl;
st_select_lex *new_pos= spec->first_select();
- st_select_lex *last_sl;
+ st_select_lex *UNINIT_VAR(last_sl);
new_pos->linkage= UNION_TYPE;
for (st_select_lex *sl= new_pos; sl; sl= next_sl)
{