Mercurial > geeqie
diff src/trash.c @ 783:d6a7fb4b8e7c
replaced directory path with FileData* dir_fd
author | nadvornik |
---|---|
date | Tue, 03 Jun 2008 19:44:19 +0000 |
parents | 7148e125bf23 |
children | 6ca2c5fd7b13 |
line wrap: on
line diff
--- a/src/trash.c Tue Jun 03 15:54:05 2008 +0000 +++ b/src/trash.c Tue Jun 03 19:44:19 2008 +0000 @@ -35,8 +35,15 @@ GList *work; gint sorted = FALSE; gint warned = FALSE; + FileData *dir_fd; - if (!filelist_read(options->file_ops.safe_delete_path, &list, NULL)) return 0; + dir_fd = file_data_new_simple(options->file_ops.safe_delete_path); + if (!filelist_read(dir_fd, &list, NULL)) + { + file_data_unref(dir_fd); + return 0; + } + file_data_unref(dir_fd); work = list; while (work)