about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index dd485c2..276abec 100644
--- a/lr.c
+++ b/lr.c
@@ -1250,7 +1250,7 @@ count_entries(struct fileinfo *fi)
 	if (!S_ISDIR(fi->sb.st_mode))
 		return 0;
 
-	d = opendir(fi->fpath);
+	d = opendir(fi->fpath[0] ? fi->fpath : ".");
 	if (!d)
 		return 0;
 	while ((de = readdir(d))) {