From 19cea738342737503f47cfe6ff67d5248b0a0961 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Thu, 5 Sep 2024 13:24:22 +0200 Subject: [PATCH] Cleanup - make sure all members of table_load_params are initialized Alexey Botchkov complains there are problems with empty curly brackets initializer in old-ish gcc(4.9) Can't verify, but making all members are initialized by default constructor is easy enough. --- client/mysqlimport.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/mysqlimport.cc b/client/mysqlimport.cc index b8c92b76950..be60bade00c 100644 --- a/client/mysqlimport.cc +++ b/client/mysqlimport.cc @@ -81,7 +81,7 @@ struct table_load_params CREATE VIEW */ std::string tablename; /* name of the table */ std::string dbname; /* name of the database */ - ulonglong size; /* size of the data file */ + ulonglong size= 0; /* size of the data file */ }; std::unordered_set ignore_databases; @@ -1017,7 +1017,7 @@ static void scan_backup_dir(const char *dir, } for (size_t j= 0; j < dir_info2->number_of_files; j++) { - table_load_params par{}; + table_load_params par; par.dbname= dbname; fi= &dir_info2->dir_entry[j]; if (has_extension(fi->name, ".sql") || has_extension(fi->name, ".txt"))