From e919a844eb675d501207b14584da3986b4288ce9 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 30 Mar 2010 13:46:09 +0000 Subject: [PATCH] Properly initialize local varaible in btree_xlog_delete_get_latestRemovedXid(). This variable was only tested in assert builds. --- src/backend/access/nbtree/nbtxlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/access/nbtree/nbtxlog.c b/src/backend/access/nbtree/nbtxlog.c index 5bc710caec..88ace6033c 100644 --- a/src/backend/access/nbtree/nbtxlog.c +++ b/src/backend/access/nbtree/nbtxlog.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.64 2010/03/28 09:27:01 sriggs Exp $ + * $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.65 2010/03/30 13:46:09 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -578,7 +578,7 @@ btree_xlog_delete_get_latestRemovedXid(XLogRecord *record) TransactionId latestRemovedXid = InvalidTransactionId; TransactionId htupxid = InvalidTransactionId; int i; - int num_unused, num_redirect, num_dead; + int num_unused = 0, num_redirect, num_dead; xl_btree_delete *xlrec = (xl_btree_delete *) XLogRecGetData(record); -- 2.40.0