summaryrefslogtreecommitdiffstats
path: root/src/lib/event_xml_parser.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-03-29 11:12:16 -0400
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-29 20:28:24 +0200
commitd6783b83ecce7a8b63cad69216f178d02b774546 (patch)
tree86c613c576d1a52b4522842c7816cc2b64f110a1 /src/lib/event_xml_parser.c
parent5cc34d7d4e636c083b2722645778f78bf30c71cb (diff)
all: don't declare variables inside for loops
Diffstat (limited to 'src/lib/event_xml_parser.c')
-rw-r--r--src/lib/event_xml_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/event_xml_parser.c b/src/lib/event_xml_parser.c
index 74329134..a6aa9a1f 100644
--- a/src/lib/event_xml_parser.c
+++ b/src/lib/event_xml_parser.c
@@ -111,8 +111,9 @@ static void start_element(GMarkupParseContext *context,
}
event_option_t *opt = parse_data->cur_option = new_event_option();
+ int i;
- for (int i = 0; attribute_names[i] != NULL; ++i)
+ for (i = 0; attribute_names[i] != NULL; ++i)
{
VERB2 log("attr: %s:%s", attribute_names[i], attribute_values[i]);
if (strcmp(attribute_names[i], "name") == 0)