summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-09-05 15:57:15 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-09-05 15:57:15 +0200
commit7f818f303fec745285b3b4f6501bf183ec199fcb (patch)
treeab4f2a917c4c0d83d7c87b489af158d6871dbf51
parent89fde62a5337c41936902681d488fbe24ec9457a (diff)
Fixed lines_node being added as a child of users_node instead of user_node in export_xml.
-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++) {