Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ee0b602

Browse files
committed
Silence compiler warning about uninitialized variables. This initialization
is not necessary needed, but some compilers complain about it.
1 parent faddd3f commit ee0b602

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/06 05:31:13 itagaki Exp $
14+
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.192 2010/01/06 11: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)