mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fixed segfault on specifying an empty dir
This commit is contained in:
parent
18211ebe2e
commit
1f341f8b4c
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue