Merge branch '3496_unsorted'

This commit is contained in:
Yury V. Zaytsev 2015-10-18 18:06:43 +02:00
commit 7f29e0ac4c
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ dir_list_sort (dir_list * list, GCompareFunc sort, const dir_sort_options_t * so
file_entry_t *fentry;
int dot_dot_found = 0;
if (list->len < 2)
if (list->len < 2 || sort == (GCompareFunc) unsorted)
return;
/* If there is an ".." entry the caller must take care to