Mercurial > geeqie
diff src/search.c @ 1367:fe4da037be21
When g_new0() is used, drop redundant initializations to NULL, FALSE or 0, second pass.
author | zas_ |
---|---|
date | Sun, 01 Mar 2009 23:14:19 +0000 |
parents | 79937bc55f3a |
children | a0bd58a6535f |
line wrap: on
line diff
--- a/src/search.c Sun Mar 01 21:35:18 2009 +0000 +++ b/src/search.c Sun Mar 01 23:14:19 2009 +0000 @@ -2601,10 +2601,6 @@ sd->search_height = 480; sd->search_width_end = 1024; sd->search_height_end = 768; - sd->search_name = NULL; - sd->search_name_match_case = FALSE; - sd->search_comment = NULL; - sd->search_comment_match_case = FALSE; sd->search_type = SEARCH_MATCH_NONE; @@ -2616,16 +2612,13 @@ sd->match_comment = SEARCH_MATCH_CONTAINS; sd->match_name_enable = TRUE; - sd->match_size_enable = FALSE; - sd->match_date_enable = FALSE; - sd->match_dimensions_enable = FALSE; - sd->match_similarity_enable = FALSE; - sd->match_keywords_enable = FALSE; - sd->match_comment_enable = FALSE; sd->search_similarity = 95; - sd->search_similarity_path = example_file ? g_strdup(example_file->path) : NULL; - sd->search_similarity_cd = NULL; + + if (example_file) + { + sd->search_similarity_path = g_strdup(example_file->path); + } sd->search_idle_id = -1; sd->update_idle_id = -1;