changeset 1025:448d174454e1

fixed possible endless loop
author nadvornik
date Sun, 31 Aug 2008 18:53:11 +0000
parents c92e5a5c3bfa
children 8acc100d5527
files src/exif.c src/exiv2.cc
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/exif.c	Sun Aug 31 12:29:49 2008 +0000
+++ b/src/exif.c	Sun Aug 31 18:53:11 2008 +0000
@@ -1624,6 +1624,7 @@
 			g_free(ud);
 			return;
 			}
+		work = work->next;
 		}
 	g_assert_not_reached();
 }
--- a/src/exiv2.cc	Sun Aug 31 12:29:49 2008 +0000
+++ b/src/exiv2.cc	Sun Aug 31 18:53:11 2008 +0000
@@ -742,6 +742,7 @@
 			g_free(ud);
 			return;
 			}
+		work = work->next;
 		}
 	g_assert_not_reached();
 }