Commit c9539043 authored by Max Kellermann's avatar Max Kellermann

db/update/Service: initialize "progress" and "update_task_id"

Database update was randomly broken due to these uninitialized variables.
parent ddd36338
......@@ -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)
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment