Mercurial > geeqie.yaz
comparison src/bar_exif.c @ 895:b48c366d5707
Move out test outside the loop.
author | zas_ |
---|---|
date | Sun, 20 Jul 2008 07:52:16 +0000 |
parents | efed9a1520d6 |
children | c414002a1f27 |
comparison
equal
deleted
inserted
replaced
894:e394184cb0f1 | 895:b48c366d5707 |
---|---|
148 | 148 |
149 static gint bar_exif_row_enabled(const gchar *name) | 149 static gint bar_exif_row_enabled(const gchar *name) |
150 { | 150 { |
151 GList *list; | 151 GList *list; |
152 | 152 |
153 if (!name) return FALSE; | |
154 | |
153 list = history_list_get_by_key("exif_extras"); | 155 list = history_list_get_by_key("exif_extras"); |
154 while (list) | 156 while (list) |
155 { | 157 { |
156 if (name && strcmp(name, (gchar *)(list->data)) == 0) return TRUE; | 158 if (strcmp(name, (gchar *)(list->data)) == 0) return TRUE; |
157 list = list->next; | 159 list = list->next; |
158 } | 160 } |
159 | 161 |
160 return FALSE; | 162 return FALSE; |
161 } | 163 } |