menu: file browser fixes
authornotaz <notasas@gmail.com>
Wed, 24 Dec 2014 02:23:04 +0000 (04:23 +0200)
committernotaz <notasas@gmail.com>
Wed, 24 Dec 2014 02:23:04 +0000 (04:23 +0200)
frontend/libpicofe
frontend/menu.c

index d1453cf..515ac0b 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d1453cf7e6d5d6758cc5d72c6d3af7d37156bf72
+Subproject commit 515ac0b9d2c4d45a465335d54b8c49830914fcea
index 1562735..2823a23 100644 (file)
@@ -209,6 +209,9 @@ static int optional_cdimg_filter(struct dirent **namelist, int count,
        struct stat64 statf;
        FILE *f;
 
+       if (count <= 1)
+               return count;
+
        for (i = 1; i < count; i++) {
                if (namelist[i] == NULL || namelist[i]->d_type == DT_DIR)
                        continue;