Fix some clang warnings with -Wmissing-braces in sandbox.
commit9d02fb0d79f255dbaf8e8613ee829d8875ae561d
authordcheng <dcheng@chromium.org>
Thu, 2 Jul 2015 17:13:33 +0000 (2 10:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 2 Jul 2015 17:14:12 +0000 (2 17:14 +0000)
treed31c2b9e3ae396fa889a5f7df0515dbe0c3e9b04
parent30a727d5ca1914eec9c2d1cf819affa6ecf881f3
Fix some clang warnings with -Wmissing-braces in sandbox.

Clang warns if there are missing braces around a subobject
initializer. The most common idiom that triggers this is:
  STRUCT s = {0};
if the first field of STRUCT is itself a struct. This can
be more simply written as:
  STRUCT s = {};
which also prevents the warning from firing.

BUG=505297

Review URL: https://codereview.chromium.org/1216243007

Cr-Commit-Position: refs/heads/master@{#337237}
14 files changed:
sandbox/win/sandbox_poc/pocdll/handles.cc
sandbox/win/src/file_policy_test.cc
sandbox/win/src/filesystem_dispatcher.cc
sandbox/win/src/filesystem_policy.cc
sandbox/win/src/handle_dispatcher.cc
sandbox/win/src/ipc_unittest.cc
sandbox/win/src/job.cc
sandbox/win/src/named_pipe_dispatcher.cc
sandbox/win/src/process_mitigations.cc
sandbox/win/src/process_thread_dispatcher.cc
sandbox/win/src/registry_dispatcher.cc
sandbox/win/src/restricted_token_utils.cc
sandbox/win/src/sandbox_policy_base.cc
sandbox/win/src/sync_dispatcher.cc