diff options
author | Paul Smith <psmith@gnu.org> | 2006-02-01 13:31:25 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-02-01 13:31:25 +0000 |
commit | 7a8549f5dd339eec9cb57c8cfe11cf71b77759d2 (patch) | |
tree | fe73ff04cfcc6ad9a67282b8d7b76a41aff39417 /dir.c | |
parent | 4cd35390242bc3e7720dd9831e4bd03e55c636e2 (diff) | |
download | gunmake-7a8549f5dd339eec9cb57c8cfe11cf71b77759d2.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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |