Mercurial > geeqie
comparison src/filedata.c @ 780:44128da39e13
Drop initialization to NULL since filelist_read() will take care of it.
author | zas_ |
---|---|
date | Tue, 03 Jun 2008 11:24:16 +0000 |
parents | 8b21337bc47b |
children | d6a7fb4b8e7c |
comparison
equal
deleted
inserted
replaced
779:8b21337bc47b | 780:44128da39e13 |
---|---|
827 work = dirs; | 827 work = dirs; |
828 while (work) | 828 while (work) |
829 { | 829 { |
830 FileData *fd = (FileData *)(work->data); | 830 FileData *fd = (FileData *)(work->data); |
831 const gchar *path = fd->path; | 831 const gchar *path = fd->path; |
832 GList *f = NULL; | 832 GList *f; |
833 GList *d = NULL; | 833 GList *d; |
834 | 834 |
835 if (filelist_read(path, &f, &d)) | 835 if (filelist_read(path, &f, &d)) |
836 { | 836 { |
837 f = filelist_filter(f, FALSE); | 837 f = filelist_filter(f, FALSE); |
838 f = filelist_sort_path(f); | 838 f = filelist_sort_path(f); |
848 } | 848 } |
849 } | 849 } |
850 | 850 |
851 GList *filelist_recursive(const gchar *path) | 851 GList *filelist_recursive(const gchar *path) |
852 { | 852 { |
853 GList *list = NULL; | 853 GList *list; |
854 GList *d = NULL; | 854 GList *d; |
855 | 855 |
856 if (!filelist_read(path, &list, &d)) return NULL; | 856 if (!filelist_read(path, &list, &d)) return NULL; |
857 list = filelist_filter(list, FALSE); | 857 list = filelist_filter(list, FALSE); |
858 list = filelist_sort_path(list); | 858 list = filelist_sort_path(list); |
859 | 859 |