db/update/Queue: work around GCC7 -Wuninitialized

This commit is contained in:
Max Kellermann 2018-02-01 19:53:42 +01:00
parent dead461542
commit e573cbf032
2 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,10 @@ struct UpdateQueueItem {
bool IsDefined() const {
return id != 0;
}
void Clear() {
id = 0;
}
};
class UpdateQueue {

View File

@ -252,7 +252,7 @@ UpdateService::RunDeferred()
delete walk;
walk = nullptr;
next = UpdateQueueItem();
next.Clear();
idle_add(IDLE_UPDATE);