mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Fix some unitialized fields in modules.
They are not used before OnLoad anyway, but Coverity will be happier.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user