sensorcommands: zeroize some ints
[src/sensorcommands.cpp:867]:
(error) Uninitialized variable: assertionEnabledLsb
(error) Uninitialized variable: assertionEnabledMsb
(error) Uninitialized variable: deassertionEnabledLsb
(error) Uninitialized variable: deassertionEnabledMsb
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id9703bef367b48353881c7ae37bd294c7bf5c5f9
diff --git a/src/sensorcommands.cpp b/src/sensorcommands.cpp
index 0101389..b2490d5 100644
--- a/src/sensorcommands.cpp
+++ b/src/sensorcommands.cpp
@@ -829,11 +829,11 @@
std::string connection;
std::string path;
- uint8_t enabled;
- uint8_t assertionEnabledLsb;
- uint8_t assertionEnabledMsb;
- uint8_t deassertionEnabledLsb;
- uint8_t deassertionEnabledMsb;
+ uint8_t enabled = 0;
+ uint8_t assertionEnabledLsb = 0;
+ uint8_t assertionEnabledMsb = 0;
+ uint8_t deassertionEnabledLsb = 0;
+ uint8_t deassertionEnabledMsb = 0;
auto status = getSensorConnection(sensorNum, connection, path);
if (status)