config/Data: automatic initialization

This commit is contained in:
Max Kellermann 2018-07-17 21:35:43 +02:00
parent d6529d8c60
commit 8c366f0774

View File

@ -28,8 +28,8 @@ struct ConfigParam;
struct ConfigBlock;
struct ConfigData {
std::array<ConfigParam *, std::size_t(ConfigOption::MAX)> params;
std::array<ConfigBlock *, std::size_t(ConfigBlockOption::MAX)> blocks;
std::array<ConfigParam *, std::size_t(ConfigOption::MAX)> params{{nullptr}};
std::array<ConfigBlock *, std::size_t(ConfigBlockOption::MAX)> blocks{{nullptr}};
void Clear();