summaryrefslogtreecommitdiffstats
path: root/src/lib/event_xml_parser.c
diff options
context:
space:
mode:
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)