summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-08-07 20:42:51 +0000
committerRoland McGrath <roland@redhat.com>1995-08-07 20:42:51 +0000
commit0afe62e2558c5d63febde52777895dc97cdb3cd8 (patch)
tree933cf3aaf7316d54bd8942c5dbded90d20706366 /dir.c
parentee14af651f1105076fcbff39e62ae1002ad1c1ce (diff)
downloadmake-0afe62e2558c5d63febde52777895dc97cdb3cd8.tar.gz
(file_impossible_p): Correctly reset FILENAME to name within directory
before hash search.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index ab55f8f..d87cb1c 100644
--- a/dir.c
+++ b/dir.c
@@ -1,5 +1,5 @@
/* Directory hashing for GNU Make.
-Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+Copyright (C) 1988, 89, 91, 92, 93, 94, 95 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -444,7 +444,7 @@ file_impossible_p (filename)
bcopy (p, dirname, dirend - p);
dirname[dirend - p] = '\0';
dir = find_directory (dirname)->contents;
- p = dirend + 1;
+ p = filename = dirend + 1;
}
if (dir == 0 || dir->files == 0)