Module: check_mk
Branch: master
Commit: cf385c519587d0fa5336427ec3caa7df34189f16
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf385c519587d0…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Wed Feb 28 16:38:37 2018 +0100
Win-agent: default-initialize event state offset
Until now, the sendall-feature of Windows eventlogs was working at most
accidentally, relying on the compiler being friendly enough to zero
struct fields even when not told to do so.
---
agents/windows/sections/SectionEventlog.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/sections/SectionEventlog.h
b/agents/windows/sections/SectionEventlog.h
index 44ae3f6..13d489b 100644
--- a/agents/windows/sections/SectionEventlog.h
+++ b/agents/windows/sections/SectionEventlog.h
@@ -60,7 +60,7 @@ std::ostream &operator<<(std::ostream &out, const config
&val);
struct state {
state(const char *name) : name(name), newly_discovered(true) {}
std::string name;
- uint64_t record_no;
+ uint64_t record_no{0};
bool newly_discovered;
};