diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-12-13 01:09:00 -0800 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2018-01-03 10:39:50 +0100 |
commit | 0c59f20b918a41d12b3d6fd40a1e7c21ef2e51e6 (patch) | |
tree | d4910f9efde7f7c111f6693339ae6e5e5843d7c2 | |
parent | 62387107f9a1ebae534d6e4ec3ff1a20c0ce53d9 (diff) |
C++: initialize all members of SyncSourceEvent
While not necessary (attributes are not read for NOP event), it's
still cleaner to also initialize them. Found with cppcheck.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
-rw-r--r-- | src/syncevo/SyncContext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/syncevo/SyncContext.h b/src/syncevo/SyncContext.h index b5e00ecf..f14b8d5f 100644 --- a/src/syncevo/SyncContext.h +++ b/src/syncevo/SyncContext.h @@ -608,7 +608,10 @@ class SyncContext : public SyncConfig { int32_t m_extra1, m_extra2, m_extra3; SyncSourceEvent() : - m_type(sysync::PEV_NOP) + m_type(sysync::PEV_NOP), + m_extra1(0), + m_extra2(0), + m_extra3(0) {} SyncSourceEvent(sysync::TProgressEventEnum type, |