# HG changeset patch # User zas_ # Date 1216540336 0 # Node ID b48c366d5707b47372a89c227f14d0243b251b35 # Parent e394184cb0f1c1c069f5e836e58b7283d9755aa3 Move out test outside the loop. diff -r e394184cb0f1 -r b48c366d5707 src/bar_exif.c --- 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; }