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

Unified Diff: sandbox/win/src/process_mitigations.cc

Issue 1660103005: clang/win: Fix -Wmissing-braces warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: sandbox/win/src/process_mitigations.cc
diff --git a/sandbox/win/src/process_mitigations.cc b/sandbox/win/src/process_mitigations.cc
index 67999a42a7f4219a9b0566e5e54745c2af048179..ba191d6ba6f86113a9efee080466dd7bf827b1df 100644
--- a/sandbox/win/src/process_mitigations.cc
+++ b/sandbox/win/src/process_mitigations.cc
@@ -179,7 +179,7 @@ bool ApplyProcessMitigationsToCurrentProcess(MitigationFlags flags) {
// Enable font policies.
if (flags & MITIGATION_NONSYSTEM_FONT_DISABLE) {
- PROCESS_MITIGATION_FONT_DISABLE_POLICY policy = {0};
+ PROCESS_MITIGATION_FONT_DISABLE_POLICY policy = {};
policy.DisableNonSystemFonts = true;
if (!set_process_mitigation_policy(ProcessFontDisablePolicy, &policy,
@@ -195,7 +195,7 @@ bool ApplyProcessMitigationsToCurrentProcess(MitigationFlags flags) {
// Enable image load policies.
if (flags & MITIGATION_IMAGE_LOAD_NO_REMOTE ||
flags & MITIGATION_IMAGE_LOAD_NO_LOW_LABEL) {
- PROCESS_MITIGATION_IMAGE_LOAD_POLICY policy = {0};
+ PROCESS_MITIGATION_IMAGE_LOAD_POLICY policy = {};
if (flags & MITIGATION_IMAGE_LOAD_NO_REMOTE)
policy.NoRemoteImages = true;
if (flags & MITIGATION_IMAGE_LOAD_NO_LOW_LABEL)
« 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