From c9539043433678f4cf5e09443f880f64f61c6fef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 11:22:13 +0100 Subject: db/update/Service: initialize "progress" and "update_task_id" Database update was randomly broken due to these uninitialized variables. --- src/db/update/UpdateGlue.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/db/update/UpdateGlue.cxx b/src/db/update/UpdateGlue.cxx index a13d56926..43c6a0bbc 100644 --- a/src/db/update/UpdateGlue.cxx +++ b/src/db/update/UpdateGlue.cxx @@ -147,6 +147,8 @@ UpdateService::RunDeferred() } UpdateService::UpdateService(EventLoop &_loop, SimpleDatabase &_db) - :DeferredMonitor(_loop), db(_db), walk(_loop) + :DeferredMonitor(_loop), db(_db), progress(UPDATE_PROGRESS_IDLE), + update_task_id(0), + walk(_loop) { } -- cgit v1.2.3