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

Database update was randomly broken due to these uninitialized
variables.
This commit is contained in:
Max Kellermann 2014-02-04 11:22:13 +01:00
parent ddd36338da
commit c953904343

View File

@ -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)
{
}