From fa56a0c3e01c175695e932e6cdc2c6915df5adc6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 4 Oct 2011 17:08:18 -0400 Subject: [PATCH] Fix uninitialized-variable bug. --- src/backend/access/transam/slru.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c index 4b838a0dfe..f7caa341e1 100644 --- a/src/backend/access/transam/slru.c +++ b/src/backend/access/transam/slru.c @@ -1211,12 +1211,12 @@ SlruScanDirCbDeleteAll(SlruCtl ctl, char *filename, int segpage, void *data) bool SlruScanDirectory(SlruCtl ctl, SlruScanCallback callback, void *data) { + bool retval = false; DIR *cldir; struct dirent *clde; int segno; int segpage; - bool retval; - + cldir = AllocateDir(ctl->Dir); while ((clde = ReadDir(cldir, ctl->Dir)) != NULL) { -- 2.40.0