mirror of
https://github.com/mirror/make.git
synced 2025-01-14 14:20:20 +08:00
Fix a bug where a variable could be used without being initialized in W32.
This commit is contained in:
parent
4cd3539024
commit
7a8549f5dd
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-01 Paul D. Smith <psmith@gnu.org>
|
||||||
|
|
||||||
|
* dir.c (dir_contents_file_exists_p) [WINDOWS32]: Make sure
|
||||||
|
variable st is not used when it's not initialized.
|
||||||
|
Patch from Eli Zaretskii <eliz@gnu.org>.
|
||||||
|
|
||||||
2006-01-31 Paul D. Smith <psmith@gnu.org>
|
2006-01-31 Paul D. Smith <psmith@gnu.org>
|
||||||
|
|
||||||
* README.W32.template: Applied patch #4785 from
|
* README.W32.template: Applied patch #4785 from
|
||||||
|
12
dir.c
12
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
|
* filesystems force a rehash always as mtime does not change
|
||||||
* on directories (ugh!).
|
* on directories (ugh!).
|
||||||
*/
|
*/
|
||||||
if (dir->path_key
|
if (dir->path_key)
|
||||||
&& (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 */
|
if (!(dir->fs_flags & FS_FAT)
|
||||||
dir->mtime = st.st_mtime;
|
&& (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 */
|
/* make sure directory can still be opened */
|
||||||
dir->dirstream = opendir(dir->path_key);
|
dir->dirstream = opendir(dir->path_key);
|
||||||
|
Loading…
Reference in New Issue
Block a user