Fix some unitialized fields in modules.

They are not used before OnLoad anyway, but Coverity will be happier.
This commit is contained in:
Alexey Sokolov
2015-10-30 14:52:51 +00:00
parent c8edabb035
commit 096dc5b320
10 changed files with 31 additions and 34 deletions
+4 -7
View File
@@ -20,9 +20,6 @@
class CCtcpFloodMod : public CModule {
public:
MODCONSTRUCTOR(CCtcpFloodMod) {
m_tLastCTCP = 0;
m_iNumCTCP = 0;
AddHelpCommand();
AddCommand("Secs", static_cast<CModCommand::ModCmdFunc>(&CCtcpFloodMod::OnSecsCommand), "<limit>", "Set seconds limit");
AddCommand("Lines", static_cast<CModCommand::ModCmdFunc>(&CCtcpFloodMod::OnLinesCommand), "<limit>", "Set lines limit");
@@ -130,11 +127,11 @@ public:
}
private:
time_t m_tLastCTCP;
unsigned int m_iNumCTCP;
time_t m_tLastCTCP = 0;
unsigned int m_iNumCTCP = 0;
time_t m_iThresholdSecs;
unsigned int m_iThresholdMsgs;
time_t m_iThresholdSecs{};
unsigned int m_iThresholdMsgs{};
};
template<> void TModInfo<CCtcpFloodMod>(CModInfo& Info) {