summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-02-01 13:31:25 +0000
committerPaul Smith <psmith@gnu.org>2006-02-01 13:31:25 +0000
commitc788d129796c18c6ff720a7aa9cc73702f6cedbc (patch)
treefe73ff04cfcc6ad9a67282b8d7b76a41aff39417 /dir.c
parent9b34eaadec583af16f36e66f534ea527c8f43904 (diff)
downloadmake-c788d129796c18c6ff720a7aa9cc73702f6cedbc.tar.gz
Fix a bug where a variable could be used without being initialized in W32.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dir.c b/dir.c
index c1db6590..f6a03bda 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);