summary refs log tree commit diff
path: root/fp.c
diff options
context:
space:
mode:
Diffstat (limited to 'fp.c')
-rw-r--r--fp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fp.c b/fp.c
index 7a05801..fa54bc3 100644
--- a/fp.c
+++ b/fp.c
@@ -100,6 +100,8 @@ void loadpath(const char *path)
 {
 	errno = 0;
 	DIR *dir = opendir(path);
+	if (!dir)
+		err(1, "opendir(`%s')", path);
 	for (struct dirent *d; (d = readdir(dir));)
 	{
 		results = realloc(results, sizeof(*results) * ++amount);