Zero initialize member variables
The default constructor on this class does not zero initialize the
variables, so add explicit zero initialization.
Change-Id: Id0c1348ef6e17f974c900924fd7453aad51b5c15
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/snmp_notification.hpp b/snmp_notification.hpp
index ca6eb9a..22a7fb3 100644
--- a/snmp_notification.hpp
+++ b/snmp_notification.hpp
@@ -148,9 +148,9 @@
class OBMCErrorNotification : public Notification
{
private:
- uint32_t OBMCErrorID;
- uint64_t OBMCErrorTimestamp;
- int32_t OBMCErrorSeverity;
+ uint32_t OBMCErrorID = 0;
+ uint64_t OBMCErrorTimestamp = 0;
+ int32_t OBMCErrorSeverity = 0;
std::string OBMCErrorMessage;
public: