Mercurial > geeqie
comparison src/view_file.c @ 971:33db1ec31e85
fixed possible segfault
author | nadvornik |
---|---|
date | Tue, 19 Aug 2008 20:58:23 +0000 |
parents | 065a129fd42b |
children | 6ca2c5fd7b13 |
comparison
equal
deleted
inserted
replaced
970:6d4cd1193ab1 | 971:33db1ec31e85 |
---|---|
841 { | 841 { |
842 ViewFile *vf = data; | 842 ViewFile *vf = data; |
843 gboolean refresh; | 843 gboolean refresh; |
844 | 844 |
845 if (vf->refresh_idle_id != -1) return; | 845 if (vf->refresh_idle_id != -1) return; |
846 | 846 |
847 if (!vf->dir_fd) return; | |
848 | |
847 refresh = (fd == vf->dir_fd); | 849 refresh = (fd == vf->dir_fd); |
848 | 850 |
849 if (!refresh) | 851 if (!refresh) |
850 { | 852 { |
851 gchar *base = remove_level_from_path(fd->path); | 853 gchar *base = remove_level_from_path(fd->path); |