Skip to content
Snippets Groups Projects
Commit 1f341f8b authored by Yorhel's avatar Yorhel
Browse files

Fixed segfault on specifying an empty dir

parent 18211ebe
No related branches found
No related tags found
No related merge requests found
......@@ -473,6 +473,7 @@ void browse_init(struct dir *cur) {
browse_dir = cur;
if(browse_dir != NULL && browse_dir->parent->sub != browse_dir)
browse_dir = cur->parent->sub;
browse_dir = browse_sort(browse_dir);
if(browse_dir != NULL)
browse_dir = browse_sort(browse_dir);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment