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

Commit979cd65

Browse files
committed
Suppress compiler warning in pub_collist_to_bitmapset().
A fair percentage of the buildfarm doesn't recognize that oldcxtwon't be used uninitialized; silence those warnings by initializing it.While here, upgrade the function's thoroughly inadequate header comment.Oversight in923def9, per buildfarm.
1 parent923def9 commit979cd65

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/backend/catalog/pg_publication.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,11 @@ publication_translate_columns(Relation targetrel, List *columns,
592592
}
593593

594594
/*
595-
* Transform the column list (represented by an array) to a bitmapset.
595+
* Transform a column list (represented by an array Datum) to a bitmapset.
596+
*
597+
* If columns isn't NULL, add the column numbers to that set.
598+
*
599+
* If mcxt isn't NULL, build the bitmapset in that context.
596600
*/
597601
Bitmapset*
598602
pub_collist_to_bitmapset(Bitmapset*columns,Datumpubcols,MemoryContextmcxt)
@@ -601,7 +605,7 @@ pub_collist_to_bitmapset(Bitmapset *columns, Datum pubcols, MemoryContext mcxt)
601605
ArrayType*arr;
602606
intnelems;
603607
int16*elems;
604-
MemoryContextoldcxt;
608+
MemoryContextoldcxt=NULL;
605609

606610
/*
607611
* If an existing bitmap was provided, use it. Otherwise just use NULL

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp