diff options
| author | Hartmut Brandt <harti@FreeBSD.org> | 2004-11-30 10:35:04 +0000 |
|---|---|---|
| committer | Hartmut Brandt <harti@FreeBSD.org> | 2004-11-30 10:35:04 +0000 |
| commit | e35e595f1d3061fbe110733a20ded4b224227dcc (patch) | |
| tree | 009d67340f3e579b03809d269f83135d9d851813 /usr.bin/make/dir.c | |
| parent | 3bc18cb7676fd424a680f2fae3a50d0e9ad7e1df (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/dir.c')
| -rw-r--r-- | usr.bin/make/dir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c index 137a21e32cdf..4f520e6bb1fc 100644 --- a/usr.bin/make/dir.c +++ b/usr.bin/make/dir.c @@ -231,10 +231,12 @@ Dir_Init (void) void Dir_InitDot (void) { + LstNode ln; + Dir_AddDir (openDirectories, "."); - dot = (Path *)Lst_Datum(Lst_Last(openDirectories)); - if (dot == (Path *) NULL) + if ((ln = Lst_Last(openDirectories)) == NULL) err(1, "cannot open current directory"); + dot = Lst_Datum(ln); /* * We always need to have dot around, so we increment its reference count |
