diff options
-rw-r--r-- | lr.c | 2 |
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))) { |