Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: components/scheduler/base/work_queue.cc

Issue 1700853002: avoid 'may be used uninitialized' warnings in work_queue.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/work_queue.cc
diff --git a/components/scheduler/base/work_queue.cc b/components/scheduler/base/work_queue.cc
index 338c0b1e94405733d3992ab74c9df06f1a270703..01ce4894392743a0ab7f99638f231b89f603f202 100644
--- a/components/scheduler/base/work_queue.cc
+++ b/components/scheduler/base/work_queue.cc
@@ -91,8 +91,8 @@ void WorkQueue::AssignSetIndex(size_t work_queue_set_index) {
bool WorkQueue::ShouldRunBefore(const WorkQueue* other_queue) const {
DCHECK(!work_queue_.empty());
DCHECK(!other_queue->work_queue_.empty());
- EnqueueOrder enqueue_order;
- EnqueueOrder other_enqueue_order;
+ EnqueueOrder enqueue_order = 0;
+ EnqueueOrder other_enqueue_order = 0;
bool have_task = GetFrontTaskEnqueueOrder(&enqueue_order);
bool have_other_task =
other_queue->GetFrontTaskEnqueueOrder(&other_enqueue_order);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698