diff --git a/src/db/update/Service.cxx b/src/db/update/Service.cxx index 8b32f0e60..2bd605fad 100644 --- a/src/db/update/Service.cxx +++ b/src/db/update/Service.cxx @@ -43,9 +43,7 @@ UpdateService::UpdateService(EventLoop &_loop, SimpleDatabase &_db, :DeferredMonitor(_loop), db(_db), storage(_storage), listener(_listener), - update_thread(BIND_THIS_METHOD(Task)), - update_task_id(0), - walk(nullptr) + update_thread(BIND_THIS_METHOD(Task)) { } diff --git a/src/db/update/Service.hxx b/src/db/update/Service.hxx index 4ca38c52b..b0cbd2d60 100644 --- a/src/db/update/Service.hxx +++ b/src/db/update/Service.hxx @@ -46,13 +46,13 @@ class UpdateService final : DeferredMonitor { static constexpr unsigned update_task_id_max = 1 << 15; - unsigned update_task_id; + unsigned update_task_id = 0; UpdateQueue queue; UpdateQueueItem next; - UpdateWalk *walk; + UpdateWalk *walk = nullptr; public: UpdateService(EventLoop &_loop, SimpleDatabase &_db,