Mercurial > hg > forks > geeqie
comparison src/view_dir_list.c @ 2884:f9a21c9891a0
Fix #658: Bug fix: reads of uninitialized data
https://github.com/BestImageViewer/geeqie/pull/658
author | Rinat Ibragimov <ibragimovrinat@mail.ru> |
---|---|
date | Mon, 21 Jan 2019 11:54:49 +0000 |
parents | 009f0a811472 |
children |
comparison
equal
deleted
inserted
replaced
2883:d38b56bd8f22 | 2884:f9a21c9891a0 |
---|---|
147 GList *old_list; | 147 GList *old_list; |
148 gboolean ret; | 148 gboolean ret; |
149 FileData *fd; | 149 FileData *fd; |
150 SortType sort_type = SORT_NAME; | 150 SortType sort_type = SORT_NAME; |
151 gboolean sort_ascend = TRUE; | 151 gboolean sort_ascend = TRUE; |
152 gchar *link; | 152 gchar *link = NULL; |
153 | 153 |
154 old_list = VDLIST(vd)->list; | 154 old_list = VDLIST(vd)->list; |
155 | 155 |
156 ret = filelist_read(vd->dir_fd, NULL, &VDLIST(vd)->list); | 156 ret = filelist_read(vd->dir_fd, NULL, &VDLIST(vd)->list); |
157 VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, sort_type, sort_ascend); | 157 VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, sort_type, sort_ascend); |