mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* dir.c (do_load_dir): Added missing calls to tree_store_end_check.
This commit is contained in:
parent
3b6b98dc2f
commit
3149b6c86f
@ -1,5 +1,8 @@
|
|||||||
1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
1999-02-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* dir.c (do_load_dir): Added missing calls to
|
||||||
|
tree_store_end_check.
|
||||||
|
|
||||||
* find.c (add_to_list): Pass the data pointer as well.
|
* find.c (add_to_list): Pass the data pointer as well.
|
||||||
|
|
||||||
Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
Fri Feb 12 06:36:58 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||||
|
10
src/dir.c
10
src/dir.c
@ -464,6 +464,7 @@ int do_load_dir(dir_list *list, sortfn *sort, int reverse, int case_sensitive, c
|
|||||||
|
|
||||||
dirp = mc_opendir (".");
|
dirp = mc_opendir (".");
|
||||||
if (!dirp){
|
if (!dirp){
|
||||||
|
tree_store_end_check ();
|
||||||
return set_zero_dir (list);
|
return set_zero_dir (list);
|
||||||
}
|
}
|
||||||
for (dp = mc_readdir (dirp); dp; dp = mc_readdir (dirp)){
|
for (dp = mc_readdir (dirp); dp; dp = mc_readdir (dirp)){
|
||||||
@ -471,8 +472,10 @@ int do_load_dir(dir_list *list, sortfn *sort, int reverse, int case_sensitive, c
|
|||||||
&stalled_link);
|
&stalled_link);
|
||||||
if (status == 0)
|
if (status == 0)
|
||||||
continue;
|
continue;
|
||||||
if (status == -1)
|
if (status == -1){
|
||||||
|
tree_store_end_check ();
|
||||||
return next_free;
|
return next_free;
|
||||||
|
}
|
||||||
list->list [next_free].fnamelen = NLENGTH (dp);
|
list->list [next_free].fnamelen = NLENGTH (dp);
|
||||||
list->list [next_free].fname = g_strdup (dp->d_name);
|
list->list [next_free].fname = g_strdup (dp->d_name);
|
||||||
list->list [next_free].f.marked = 0;
|
list->list [next_free].f.marked = 0;
|
||||||
@ -491,9 +494,10 @@ int do_load_dir(dir_list *list, sortfn *sort, int reverse, int case_sensitive, c
|
|||||||
if (!dotdot_found)
|
if (!dotdot_found)
|
||||||
add_dotdot_to_list (list, next_free++);
|
add_dotdot_to_list (list, next_free++);
|
||||||
do_sort (list, sort, next_free-1, reverse, case_sensitive);
|
do_sort (list, sort, next_free-1, reverse, case_sensitive);
|
||||||
}
|
} else {
|
||||||
else
|
tree_store_end_check ();
|
||||||
return set_zero_dir (list);
|
return set_zero_dir (list);
|
||||||
|
}
|
||||||
|
|
||||||
mc_closedir (dirp);
|
mc_closedir (dirp);
|
||||||
tree_store_end_check ();
|
tree_store_end_check ();
|
||||||
|
Loading…
Reference in New Issue
Block a user