summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export_xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/export_xml.c b/export_xml.c
index 4485f9d..c4f2697 100644
--- a/export_xml.c
+++ b/export_xml.c
@@ -43,7 +43,7 @@ int export_xml(struct channel_t *channel, struct user_t *users) {
xmlNewChild(user_node, NULL, "words", s);
/* Add lines for this user. */
- xmlNodePtr lines_node = xmlNewChild(users_node, NULL, "lines", NULL);
+ xmlNodePtr lines_node = xmlNewChild(user_node, NULL, "lines", NULL);
for(int h = 0; h < 24; h++) {
xmlNodePtr hour_node = xmlNewChild(lines_node, NULL, "hour", NULL);
for(int q = 0; q < 4; q++) {