summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-10-04 10:27:55 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-10-04 10:27:55 +0300
commit5709a7777bd2c5c27b0f535099439f13c251de03 (patch)
treecfe8c749279215691bdf10f25d1213c6057de9e9 /sql/sp_head.cc
parenteb0a10b07222b01d40dee24e61aac9502256481f (diff)
downloadmariadb-git-5709a7777bd2c5c27b0f535099439f13c251de03.tar.gz
MDEV-19956: Do not dereference an uninitialized pointer
LEX::parsed_select_expr_cont(): Replace a condition with an assertion DBUG_ASSERT(!s2->next_select()), and always initialize sel1=s2, because all subsequent code paths will assign to sel1->first_nested. This was flagged by GCC reporting -Wmaybe-uninitialized for the statement last->link_neighbour(sel1).
Diffstat (limited to 'sql/sp_head.cc')
0 files changed, 0 insertions, 0 deletions