diff src/view_file.c @ 1365:249bf204004a

When g_new0() is used, drop redundant initializations to NULL, FALSE or 0.
author zas_
date Sun, 01 Mar 2009 21:06:55 +0000
parents 79937bc55f3a
children a0bd58a6535f
line wrap: on
line diff
--- a/src/view_file.c	Sun Mar 01 19:48:38 2009 +0000
+++ b/src/view_file.c	Sun Mar 01 21:06:55 2009 +0000
@@ -679,21 +679,10 @@
 	ViewFile *vf;
 
 	vf = g_new0(ViewFile, 1);
+	
 	vf->type = type;
-
-	vf->info = NULL;
-	vf->dir_fd = NULL;
-	vf->list = NULL;
-
 	vf->sort_method = SORT_NAME;
 	vf->sort_ascend = TRUE;
-	
-	vf->thumbs_running = FALSE;
-	vf->thumbs_loader = NULL;
-	vf->thumbs_filedata = NULL;
-
-	vf->popup = NULL;
-
 	vf->refresh_idle_id = -1;
 
 	vf->scrolled = gtk_scrolled_window_new(NULL, NULL);