Make sure to correctly set random_colors (uninitialized bool)

This commit is contained in:
morg 2023-04-30 16:14:43 +00:00 committed by Adam Honse
parent 99a18d6e6f
commit a0024b8f04

10
cli.cpp
View file

@ -49,9 +49,9 @@ struct DeviceOptions
std::string mode;
unsigned int brightness;
unsigned int size;
bool random_colors;
bool hasSize;
bool hasOption;
bool random_colors = false;
bool hasSize = false;
bool hasOption = false;
};
struct ServerOptions
@ -69,8 +69,8 @@ struct Options
| allDeviceOptions shall be applied to all available devices|
| except in the case that a profile was loaded. |
\*---------------------------------------------------------*/
bool hasDevice;
bool profile_loaded;
bool hasDevice = false;
bool profile_loaded = false;
DeviceOptions allDeviceOptions;
ServerOptions servOpts;
};