# HG changeset patch # User zas_ # Date 1238538213 0 # Node ID 1e2737565cb72a3ab989628ea08ec9e85541cd11 # Parent 331e2d60d44710d51bdc561d7d47917213d4a1ac Cleanup. diff -r 331e2d60d447 -r 1e2737565cb7 src/bar_exif.c --- a/src/bar_exif.c Tue Mar 31 21:33:54 2009 +0000 +++ b/src/bar_exif.c Tue Mar 31 22:23:33 2009 +0000 @@ -782,12 +782,11 @@ void bar_pane_exif_update_from_config(GtkWidget *pane, const gchar **attribute_names, const gchar **attribute_values) { PaneExifData *ped; + gchar *title = NULL; ped = g_object_get_data(G_OBJECT(pane), "pane_data"); if (!ped) return; - gchar *title = NULL; - while (*attribute_names) { const gchar *option = *attribute_names++; diff -r 331e2d60d447 -r 1e2737565cb7 src/metadata.c --- a/src/metadata.c Tue Mar 31 21:33:54 2009 +0000 +++ b/src/metadata.c Tue Mar 31 22:23:33 2009 +0000 @@ -473,14 +473,12 @@ { if (metadata_legacy_read(fd, &list, NULL)) return list; } - - if (strcmp(key, COMMENT_KEY) == 0) + else if (strcmp(key, COMMENT_KEY) == 0) { gchar *comment = NULL; if (metadata_legacy_read(fd, NULL, &comment)) return g_list_append(NULL, comment); } - - if (strncmp(key, "file.", 5) == 0) + else if (strncmp(key, "file.", 5) == 0) { return g_list_append(NULL, metadata_file_info(fd, key, format)); }