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

Unified Diff: remoting/host/policy_watcher.cc

Issue 947313003: Explicitly initializing a local variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: remoting/host/policy_watcher.cc
diff --git a/remoting/host/policy_watcher.cc b/remoting/host/policy_watcher.cc
index 58edfce9b662e4a52445edf3ae5b17a9c532c6f0..dfb3b0c6461a94c8e77e52e378e523d5e56fc4e2 100644
--- a/remoting/host/policy_watcher.cc
+++ b/remoting/host/policy_watcher.cc
@@ -228,7 +228,7 @@ void PolicyWatcher::OnPolicyUpdated(const policy::PolicyNamespace& ns,
std::string path;
std::string error;
- bool changed;
+ bool changed = false;
const policy::Schema* schema = GetPolicySchema();
if (schema->Normalize(policy_dict.get(), strategy, &path, &error, &changed)) {
if (changed) {
« 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