Move variable declaration and affectation near where it is used.
authorLaurent Monin <geeqie@norz.org>
Fri, 2 May 2008 09:03:52 +0000 (09:03 +0000)
committerLaurent Monin <geeqie@norz.org>
Fri, 2 May 2008 09:03:52 +0000 (09:03 +0000)
src/exif-common.c

index 612ddcc..621ba87 100644 (file)
@@ -503,15 +503,15 @@ gchar *exif_get_data_as_text(ExifData *exif, const gchar *key)
 
 ExifData *exif_read_fd(FileData *fd)
 {
-       GList *work;
        gchar *sidecar_path = NULL;
 
        if (!fd) return NULL;
 
-       work = fd->parent ? fd->parent->sidecar_files : fd->sidecar_files;
-
        if (filter_file_class(fd->extension, FORMAT_CLASS_RAWIMAGE))
                {
+               GList *work;
+               
+               work = fd->parent ? fd->parent->sidecar_files : fd->sidecar_files;
                while (work)
                        {
                        FileData *sfd = work->data;