From 7a8549f5dd339eec9cb57c8cfe11cf71b77759d2 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 1 Feb 2006 13:31:25 +0000 Subject: Fix a bug where a variable could be used without being initialized in W32. --- dir.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index c1db659..f6a03bd 100644 --- a/dir.c +++ b/dir.c @@ -630,13 +630,13 @@ dir_contents_file_exists_p (struct directory_contents *dir, char *filename) * filesystems force a rehash always as mtime does not change * on directories (ugh!). */ - if (dir->path_key - && (dir->fs_flags & FS_FAT - || (stat(dir->path_key, &st) == 0 - && st.st_mtime > dir->mtime))) + if (dir->path_key) { - /* reset date stamp to show most recent re-process */ - dir->mtime = st.st_mtime; + if (!(dir->fs_flags & FS_FAT) + && (stat(dir->path_key, &st) == 0 + && st.st_mtime > dir->mtime)) + /* reset date stamp to show most recent re-process */ + dir->mtime = st.st_mtime; /* make sure directory can still be opened */ dir->dirstream = opendir(dir->path_key); -- cgit v1.2.3