mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Properly initialize Timer::type. Fixes Coverity 1431144.
This commit is contained in:
parent
e9ec2ee06d
commit
914a4d6342
2 changed files with 3 additions and 3 deletions
|
@ -401,7 +401,7 @@ public:
|
||||||
void Dispatch(double t, bool is_expire) override;
|
void Dispatch(double t, bool is_expire) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ConnectionTimer() {}
|
ConnectionTimer() = default;
|
||||||
|
|
||||||
void Init(Connection* conn, timer_func timer, bool do_expire);
|
void Init(Connection* conn, timer_func timer, bool do_expire);
|
||||||
|
|
||||||
|
|
|
@ -65,8 +65,8 @@ public:
|
||||||
void Describe(ODesc* d) const;
|
void Describe(ODesc* d) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Timer() {}
|
Timer() = default;
|
||||||
TimerType type;
|
TimerType type{};
|
||||||
};
|
};
|
||||||
|
|
||||||
class TimerMgr : public iosource::IOSource {
|
class TimerMgr : public iosource::IOSource {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue