Commit fa56a0c3 authored by Tom Lane's avatar Tom Lane

Fix uninitialized-variable bug.

parent 4bcb82a7
...@@ -1211,11 +1211,11 @@ SlruScanDirCbDeleteAll(SlruCtl ctl, char *filename, int segpage, void *data) ...@@ -1211,11 +1211,11 @@ SlruScanDirCbDeleteAll(SlruCtl ctl, char *filename, int segpage, void *data)
bool bool
SlruScanDirectory(SlruCtl ctl, SlruScanCallback callback, void *data) SlruScanDirectory(SlruCtl ctl, SlruScanCallback callback, void *data)
{ {
bool retval = false;
DIR *cldir; DIR *cldir;
struct dirent *clde; struct dirent *clde;
int segno; int segno;
int segpage; int segpage;
bool retval;
cldir = AllocateDir(ctl->Dir); cldir = AllocateDir(ctl->Dir);
while ((clde = ReadDir(cldir, ctl->Dir)) != NULL) while ((clde = ReadDir(cldir, ctl->Dir)) != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment