# HG changeset patch # User zas_ # Date 1212483813 0 # Node ID 21ec5e6d3ddf5d98182ac50d672fa8d3139ff675 # Parent 088b71bf571528f045d6fc1fa0007ce6a0b23d00 Reduce indentation level. diff -r 088b71bf5715 -r 21ec5e6d3ddf src/collect-table.c --- a/src/collect-table.c Tue Jun 03 08:57:46 2008 +0000 +++ b/src/collect-table.c Tue Jun 03 09:03:33 2008 +0000 @@ -1902,28 +1902,28 @@ { GList *d = NULL; GList *f = NULL; - - if (filelist_read(path, &f, recursive ? &d : NULL)) + GList *work; + + if (!filelist_read(path, &f, recursive ? &d : NULL)) + return; + + f = filelist_filter(f, FALSE); + d = filelist_filter(d, TRUE); + + f = filelist_sort_path(f); + d = filelist_sort_path(d); + + collection_table_insert_filelist(ct, f, ct->marker_info); + + work = g_list_last(d); + while (work) { - GList *work; - - f = filelist_filter(f, FALSE); - d = filelist_filter(d, TRUE); - - f = filelist_sort_path(f); - d = filelist_sort_path(d); - - collection_table_insert_filelist(ct, f, ct->marker_info); - - work = g_list_last(d); - while (work) - { - collection_table_add_dir_recursive(ct, ((FileData *)work->data)->path, TRUE); - work = work->prev; - } - filelist_free(f); - filelist_free(d); + collection_table_add_dir_recursive(ct, ((FileData *)work->data)->path, TRUE); + work = work->prev; } + + filelist_free(f); + filelist_free(d); } static void confirm_dir_list_do(CollectTable *ct, GList *list, gint recursive)