changeset 971:33db1ec31e85

fixed possible segfault
author nadvornik
date Tue, 19 Aug 2008 20:58:23 +0000
parents 6d4cd1193ab1
children 2ea1059a6091
files src/view_file.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_file.c	Sun Aug 17 14:18:51 2008 +0000
+++ b/src/view_file.c	Tue Aug 19 20:58:23 2008 +0000
@@ -843,7 +843,9 @@
 	gboolean refresh;
 
 	if (vf->refresh_idle_id != -1) return;
-	
+
+	if (!vf->dir_fd) return;
+
 	refresh = (fd == vf->dir_fd);
 
 	if (!refresh)