• Marko Mäkelä's avatar
    MDEV-19956: Do not dereference an uninitialized pointer · 5709a777
    Marko Mäkelä authored
    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).
    5709a777
sql_lex.cc 298 KB