Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c698f4

Browse files
committed
Suppress "variable may be used uninitialized" warning.
Also re-pgindent, just because I'm a neatnik.
1 parentd824e28 commit2c698f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/policy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ policy_role_list_to_array(List *roles, int *num_roles)
144144
/* Handle no roles being passed in as being for public */
145145
if (roles==NIL)
146146
{
147-
*num_roles=1;
147+
*num_roles=1;
148148
role_oids= (Datum*)palloc(*num_roles*sizeof(Datum));
149149
role_oids[0]=ObjectIdGetDatum(ACL_ID_PUBLIC);
150150

151151
returnrole_oids;
152152
}
153153

154-
*num_roles=list_length(roles);
154+
*num_roles=list_length(roles);
155155
role_oids= (Datum*)palloc(*num_roles*sizeof(Datum));
156156

157157
foreach(cell,roles)
@@ -169,7 +169,7 @@ policy_role_list_to_array(List *roles, int *num_roles)
169169
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
170170
errmsg("ignoring roles specified other than public"),
171171
errhint("All roles are members of the public role.")));
172-
*num_roles=1;
172+
*num_roles=1;
173173
}
174174
role_oids[0]=ObjectIdGetDatum(ACL_ID_PUBLIC);
175175

@@ -656,7 +656,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
656656
Oidpolicy_id;
657657
Relationtarget_table;
658658
Oidtable_id;
659-
Datum*role_oids;
659+
Datum*role_oids=NULL;
660660
intnitems=0;
661661
ArrayType*role_ids=NULL;
662662
List*qual_parse_rtable=NIL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp