[tracker/rss-enclosures] Don't run past an array.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [tracker/rss-enclosures] Don't run past an array.
- Date: Mon,  3 May 2010 00:37:41 +0000 (UTC)
commit 5108dba8e2303113dea04623dfe376a2b19fd667
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 15 17:36:40 2010 +0200
    Don't run past an array.
 tests/libtracker-extract/tracker-xmp-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-extract/tracker-xmp-test.c b/tests/libtracker-extract/tracker-xmp-test.c
index aa441d7..6a9044e 100644
--- a/tests/libtracker-extract/tracker-xmp-test.c
+++ b/tests/libtracker-extract/tracker-xmp-test.c
@@ -257,7 +257,7 @@ test_xmp_orientation (void)
 {
         gint i;
 
-        for (i = 0; ORIENTATIONS[i].exif_value != NULL; i++) {
+        for (i = 0; i < G_N_ELEMENTS (ORIENTATIONS); i++) {
 		TrackerXmpData *data;
 		gchar *xmp;
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]