mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix GCC 11.2.0 -Wmaybe-uninitialized
TABLE_LIST::calc_md5(): Remove an untruthful const qualifier. thd_get_query_start_data(): Pass empty_clex_str instead of an uninitialized LEX_CSTRING.
This commit is contained in:
@@ -5156,8 +5156,8 @@ extern "C" bool thd_is_strict_mode(const MYSQL_THD thd)
|
||||
*/
|
||||
void thd_get_query_start_data(THD *thd, char *buf)
|
||||
{
|
||||
LEX_CSTRING field_name;
|
||||
Field_timestampf f((uchar *)buf, NULL, 0, Field::NONE, &field_name, NULL, 6);
|
||||
Field_timestampf f((uchar *)buf, NULL, 0, Field::NONE, &empty_clex_str,
|
||||
NULL, 6);
|
||||
f.store_TIME(thd->query_start(), thd->query_start_sec_part());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user