Make sure to correctly set random_colors (uninitialized bool)
This commit is contained in:
parent
99a18d6e6f
commit
a0024b8f04
1 changed files with 6 additions and 6 deletions
12
cli.cpp
12
cli.cpp
|
|
@ -44,14 +44,14 @@ enum
|
||||||
struct DeviceOptions
|
struct DeviceOptions
|
||||||
{
|
{
|
||||||
int device;
|
int device;
|
||||||
int zone = -1;
|
int zone = -1;
|
||||||
std::vector<std::tuple<unsigned char, unsigned char, unsigned char>> colors;
|
std::vector<std::tuple<unsigned char, unsigned char, unsigned char>> colors;
|
||||||
std::string mode;
|
std::string mode;
|
||||||
unsigned int brightness;
|
unsigned int brightness;
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
bool random_colors;
|
bool random_colors = false;
|
||||||
bool hasSize;
|
bool hasSize = false;
|
||||||
bool hasOption;
|
bool hasOption = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ServerOptions
|
struct ServerOptions
|
||||||
|
|
@ -69,8 +69,8 @@ struct Options
|
||||||
| allDeviceOptions shall be applied to all available devices|
|
| allDeviceOptions shall be applied to all available devices|
|
||||||
| except in the case that a profile was loaded. |
|
| except in the case that a profile was loaded. |
|
||||||
\*---------------------------------------------------------*/
|
\*---------------------------------------------------------*/
|
||||||
bool hasDevice;
|
bool hasDevice = false;
|
||||||
bool profile_loaded;
|
bool profile_loaded = false;
|
||||||
DeviceOptions allDeviceOptions;
|
DeviceOptions allDeviceOptions;
|
||||||
ServerOptions servOpts;
|
ServerOptions servOpts;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue