Skip to content

Commit

Permalink
Fix some clang warnings with -Wmissing-braces in rlz.
Browse files Browse the repository at this point in the history
Clang warns if there are missing braces around a subobject
initializer.

BUG=505297

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

Cr-Commit-Position: refs/heads/master@{#337085}
  • Loading branch information
zetafunction authored and Commit bot committed Jul 1, 2015
1 parent adee678 commit f2e9443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlz/win/lib/process_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool GetUserGroup(long* group) {
// as an admin)
DWORD user_groups[] = {DOMAIN_ALIAS_RID_ADMINS,
DOMAIN_ALIAS_RID_POWER_USERS};
SID_IDENTIFIER_AUTHORITY nt_authority = SECURITY_NT_AUTHORITY;
SID_IDENTIFIER_AUTHORITY nt_authority = {SECURITY_NT_AUTHORITY};

for (int i = 0; i < arraysize(user_groups) && *group == 0; ++i) {
PSID current_group;
Expand Down

0 comments on commit f2e9443

Please sign in to comment.