Mercurial > geeqie
diff src/ui_tabcomp.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 | 8b89e3ff286b |
children | 0011d6859ec5 |
line wrap: on
line diff
--- a/src/ui_tabcomp.c Sun Mar 01 19:48:38 2009 +0000 +++ b/src/ui_tabcomp.c Sun Mar 01 21:06:55 2009 +0000 @@ -798,17 +798,10 @@ } td = g_new0(TabCompData, 1); + td->entry = entry; - td->dir_path = NULL; - td->file_list = NULL; td->enter_func = enter_func; td->enter_data = data; - td->tab_func = NULL; - td->tab_data = NULL; - - td->has_history = FALSE; - td->history_key = NULL; - td->history_levels = 0; g_object_set_data(G_OBJECT(td->entry), "tab_completion_data", td);