[grilo-plugins] Initialize an iterator variable outside of the for loop to fix a build error.
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] Initialize an iterator variable outside of the for loop to fix a build error.
- Date: Wed, 29 May 2013 14:57:51 +0000 (UTC)
commit e96cf8fd77bbbda29823b62a5719358fe8928038
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Wed May 29 18:55:42 2013 +0200
Initialize an iterator variable outside of the for loop to fix a build error.
error: 'for' loop initial declaration used outside C99 mode
test/test_tmdb_full_resolution.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/test/test_tmdb_full_resolution.c b/test/test_tmdb_full_resolution.c
index 33e8b26..64db91b 100644
--- a/test/test_tmdb_full_resolution.c
+++ b/test/test_tmdb_full_resolution.c
@@ -42,7 +42,8 @@ static const gchar*
get_region_certificate (GrlMedia *media, const gchar *region)
{
guint count = grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_REGION);
- for (guint i = 0; i < count; ++i) {
+ guint i;
+ for (i = 0; i < count; ++i) {
const GDateTime* publication_date = NULL;
const gchar *certificate = NULL;
const gchar *this_region =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]