db/update/Queue: work around GCC7 -Wuninitialized
This commit is contained in:
parent
dead461542
commit
e573cbf032
|
@ -49,6 +49,10 @@ struct UpdateQueueItem {
|
|||
bool IsDefined() const {
|
||||
return id != 0;
|
||||
}
|
||||
|
||||
void Clear() {
|
||||
id = 0;
|
||||
}
|
||||
};
|
||||
|
||||
class UpdateQueue {
|
||||
|
|
|
@ -252,7 +252,7 @@ UpdateService::RunDeferred()
|
|||
delete walk;
|
||||
walk = nullptr;
|
||||
|
||||
next = UpdateQueueItem();
|
||||
next.Clear();
|
||||
|
||||
idle_add(IDLE_UPDATE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue