]> granicus.if.org Git - postgresql/commitdiff
Fix uninitialized-variable bug.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Oct 2011 21:08:18 +0000 (17:08 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Oct 2011 21:08:18 +0000 (17:08 -0400)
src/backend/access/transam/slru.c

index 4b838a0dfeb0db4a5f36e0e3e13b907bdf92f0de..f7caa341e164c9edccb509655c19281303a0d07e 100644 (file)
@@ -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)
        {