Skip to content

Commit 68827a7

Browse files
committed
Suppress an uninitialized-variable warning (not all versions of gcc
complain here, but some do)
1 parent f06ef2b commit 68827a7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/backend/storage/freespace/freespace.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.63 2008/10/01 08:12:14 heikki Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.64 2008/10/01 14:59:23 tgl Exp $
1212
*
1313
*
1414
* NOTES:
@@ -612,7 +612,7 @@ fsm_search(Relation rel, uint8 min_cat)
612612
{
613613
int slot;
614614
Buffer buf;
615-
uint8 max_avail;
615+
uint8 max_avail = 0;
616616

617617
/*
618618
* Read the FSM page. The root page is created if it doesn't exist
@@ -634,10 +634,7 @@ fsm_search(Relation rel, uint8 min_cat)
634634
UnlockReleaseBuffer(buf);
635635
}
636636
else
637-
{
638637
slot = -1;
639-
max_avail = 0;
640-
}
641638

642639
if (slot != -1)
643640
{

0 commit comments

Comments
 (0)