diff options
author | Max Kellermann <max@duempel.org> | 2014-02-04 11:22:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-04 11:22:13 +0100 |
commit | c9539043433678f4cf5e09443f880f64f61c6fef (patch) | |
tree | a1fbbf0290fae4fd553ef833325657c6637707e6 /src | |
parent | ddd36338da9f5e20dd88eb2b2276120f668d6b38 (diff) | |
download | mpd-c9539043433678f4cf5e09443f880f64f61c6fef.tar.gz mpd-c9539043433678f4cf5e09443f880f64f61c6fef.tar.xz mpd-c9539043433678f4cf5e09443f880f64f61c6fef.zip |
db/update/Service: initialize "progress" and "update_task_id"
Database update was randomly broken due to these uninitialized
variables.
Diffstat (limited to '')
-rw-r--r-- | src/db/update/UpdateGlue.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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) { } |