Skip to content

Commit 69efa13

Browse files
committed
Fixed valgrind warning in DBUG_PRINT as thd->stmt_lex is not initalized
1 parent 7d2e283 commit 69efa13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/sql_class.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ THD::THD(my_thread_id id, bool is_wsrep_applier, bool skip_global_sys_var_lock)
819819
statement_id_counter= 0UL;
820820
// Must be reset to handle error with THD's created for init of mysqld
821821
lex->current_select= 0;
822+
stmt_lex= 0;
822823
start_utime= utime_after_query= 0;
823824
system_time.start.val= system_time.sec= system_time.sec_part= 0;
824825
utime_after_lock= 0L;

0 commit comments

Comments
 (0)