aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorItagaki Takahiro <itagaki.takahiro@gmail.com>2010-01-06 11:25:39 +0000
committerItagaki Takahiro <itagaki.takahiro@gmail.com>2010-01-06 11:25:39 +0000
commitee0b602425b01d52e25c8de1238c5bd2493ab8c4 (patch)
treead6529fbb4d96ebe3fe926ba787be16d6c27b9ea /src/backend/commands/cluster.c
parentfaddd3f066ff510ae7b6bf23d7c4b8ea0eb31167 (diff)
downloadpostgresql-ee0b602425b01d52e25c8de1238c5bd2493ab8c4.tar.gz
postgresql-ee0b602425b01d52e25c8de1238c5bd2493ab8c4.zip
Silence compiler warning about uninitialized variables. This initialization
is not necessary needed, but some compilers complain about it.
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r--src/backend/commands/cluster.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index 1b1053d8a87..0f0ebd3ebc0 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.191 2010/01/06 05:31:13 itagaki Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.192 2010/01/06 11:25:39 itagaki Exp $
*
*-------------------------------------------------------------------------
*/
@@ -849,10 +849,16 @@ copy_heap_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex,
* the visibility test.
*/
if (OldIndex != NULL)
+ {
+ heapScan = NULL;
indexScan = index_beginscan(OldHeap, OldIndex,
SnapshotAny, 0, (ScanKey) NULL);
+ }
else
+ {
heapScan = heap_beginscan(OldHeap, SnapshotAny, 0, (ScanKey) NULL);
+ indexScan = NULL;
+ }
for (;;)
{