summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0c16cc8..fa49cf4 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
OpenPOWER on IntegriCloud