From 48817837737c4b5908bb51dc319fad8f2e58ea8f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 19 May 2015 23:33:07 +0200 Subject: m_spanningtree Fix harmless valgrind warning about uninit var usage on unload --- src/modules/m_spanningtree/utils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 0cd6c76c2..bbda2634d 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -117,6 +117,7 @@ TreeServer* SpanningTreeUtilities::FindServerID(const std::string &id) SpanningTreeUtilities::SpanningTreeUtilities(ModuleSpanningTree* C) : Creator(C), TreeRoot(NULL) + , PingFreq(60) // XXX: TreeServer constructor reads this and TreeRoot is created before the config is read, so init it to something (value doesn't matter) to avoid a valgrind warning in TimerManager on unload { ServerInstance->Timers.AddTimer(&RefreshTimer); } -- cgit v1.2.3