Fix variable initializtion warnings

This commit is contained in:
Alexander Babikov
2022-04-14 07:01:52 +05:00
parent 4e82d93729
commit 911821434e
4 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ void DeviceConfig::ConfigureDevice(const _device_* device, int instance, Setting
cbox->setObjectName(config->name);
auto* model = cbox->model();
int currentIndex = -1;
int selected;
int selected = 0;
switch (config->type) {
case CONFIG_SELECTION:
selected = config_get_int(device_context.name, const_cast<char*>(config->name), config->default_int);