summaryrefslogtreecommitdiff
path: root/apps/gui/folder_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/folder_select.c')
-rw-r--r--apps/gui/folder_select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/folder_select.c b/apps/gui/folder_select.c
index a76d77562b..e8a9712e33 100644
--- a/apps/gui/folder_select.c
+++ b/apps/gui/folder_select.c
@@ -482,7 +482,7 @@ static struct child* find_from_filename(const char* filename, struct folder *roo
482cascade: 482cascade:
483 /* filename == XXX/YYY. cascade down */ 483 /* filename == XXX/YYY. cascade down */
484 child_set_state_expand(this, root); 484 child_set_state_expand(this, root);
485 while (slash[0] == '/') slash++; /* eat slashes */ 485 while (slash && slash[0] == '/') slash++; /* eat slashes */
486 return find_from_filename(slash, this->folder); 486 return find_from_filename(slash, this->folder);
487} 487}
488 488