changeset 542:bdd86d86c8d3

Move variable declaration and affectation near where it is used.
author zas_
date Fri, 02 May 2008 09:03:52 +0000
parents 116346636d42
children b68fd1eb3243
files src/exif-common.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/exif-common.c	Fri May 02 08:41:32 2008 +0000
+++ b/src/exif-common.c	Fri May 02 09:03:52 2008 +0000
@@ -503,15 +503,15 @@
 
 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;