src/vfile_scan.c is using closedir(3) on an uninitialized value when an opendir(3) fails.