From a0024b8f04a8a8981883a91688f5b9b035274b19 Mon Sep 17 00:00:00 2001 From: morg Date: Sun, 30 Apr 2023 16:14:43 +0000 Subject: [PATCH] Make sure to correctly set random_colors (uninitialized bool) --- cli.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli.cpp b/cli.cpp index 34a6716b..c0b3c124 100644 --- a/cli.cpp +++ b/cli.cpp @@ -44,14 +44,14 @@ enum struct DeviceOptions { int device; - int zone = -1; + int zone = -1; std::vector> colors; 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; };