Properly initialize Timer::type. Fixes Coverity 1431144.

This commit is contained in:
Tim Wojtulewicz 2020-08-17 12:00:13 -07:00
parent e9ec2ee06d
commit 914a4d6342
2 changed files with 3 additions and 3 deletions

View file

@ -401,7 +401,7 @@ public:
void Dispatch(double t, bool is_expire) override;
protected:
ConnectionTimer() {}
ConnectionTimer() = default;
void Init(Connection* conn, timer_func timer, bool do_expire);

View file

@ -65,8 +65,8 @@ public:
void Describe(ODesc* d) const;
protected:
Timer() {}
TimerType type;
Timer() = default;
TimerType type{};
};
class TimerMgr : public iosource::IOSource {