From: Tom Lane Date: Tue, 4 Oct 2011 21:08:18 +0000 (-0400) Subject: Fix uninitialized-variable bug. X-Git-Tag: REL9_2_BETA1~1034 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa56a0c3e01c175695e932e6cdc2c6915df5adc6;p=postgresql Fix uninitialized-variable bug. --- 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) {