Mercurial > geeqie
changeset 895:b48c366d5707
Move out test outside the loop.
author | zas_ |
---|---|
date | Sun, 20 Jul 2008 07:52:16 +0000 |
parents | e394184cb0f1 |
children | cf21dc928122 |
files | src/bar_exif.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bar_exif.c Sat Jul 19 13:57:03 2008 +0000 +++ b/src/bar_exif.c Sun Jul 20 07:52:16 2008 +0000 @@ -150,10 +150,12 @@ { GList *list; + if (!name) return FALSE; + list = history_list_get_by_key("exif_extras"); while (list) { - if (name && strcmp(name, (gchar *)(list->data)) == 0) return TRUE; + if (strcmp(name, (gchar *)(list->data)) == 0) return TRUE; list = list->next; }