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

Commitee0b602

Browse files
committed
Silence compiler warning about uninitialized variables. This initialization
is not necessary needed, but some compilers complain about it.
1 parentfaddd3f commitee0b602

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/backend/commands/cluster.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.191 2010/01/0605:31:13 itagaki Exp $
14+
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.192 2010/01/0611:25:39 itagaki Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -849,10 +849,16 @@ copy_heap_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex,
849849
* the visibility test.
850850
*/
851851
if (OldIndex!=NULL)
852+
{
853+
heapScan=NULL;
852854
indexScan=index_beginscan(OldHeap,OldIndex,
853855
SnapshotAny,0, (ScanKey)NULL);
856+
}
854857
else
858+
{
855859
heapScan=heap_beginscan(OldHeap,SnapshotAny,0, (ScanKey)NULL);
860+
indexScan=NULL;
861+
}
856862

857863
for (;;)
858864
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp