[tracker] Don't run past an array.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Don't run past an array.
- Date: Thu, 15 Apr 2010 15:38:14 +0000 (UTC)
commit a99cd40c3d6826a9223006a82e02a505358cbf93
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]