aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/dir.c
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-02-10 07:12:18 +0000
committerWill Andrews <will@FreeBSD.org>2001-02-10 07:12:18 +0000
commit2de6a43d0acc3a5d9cbfe038e44efa280c0572d8 (patch)
tree8f218a760aecbe6dcfcf8813150df50b0ea2e20e /usr.bin/make/dir.c
parent56a91a6f9adaa35a7ff4f067b8848638042d5c05 (diff)
Notes
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r--usr.bin/make/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c
index 0c16cc8f2268f..fa49cf485dda3 100644
--- a/usr.bin/make/dir.c
+++ b/usr.bin/make/dir.c
@@ -223,6 +223,8 @@ Dir_Init ()
*/
Dir_AddDir (openDirectories, ".");
dot = (Path *) Lst_DeQueue (openDirectories);
+ if (dot == (Path *) NULL)
+ err(1, "cannot open current directory");
/*
* We always need to have dot around, so we increment its reference count