summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xplist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xplist.c b/src/xplist.c
index ff7f2b8..b8ddf60 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -297,9 +297,9 @@ static void node_to_xml(node_t* node, void *xml_struct)
297 if (isUIDNode) 297 if (isUIDNode)
298 { 298 {
299 unsigned int num = node_n_children(node); 299 unsigned int num = node_n_children(node);
300 unsigned int i; 300 unsigned int j;
301 for (i = num; i > 0; i--) { 301 for (j = num; j > 0; j--) {
302 node_t* ch = node_nth_child(node, i-1); 302 node_t* ch = node_nth_child(node, j-1);
303 node_detach(node, ch); 303 node_detach(node, ch);
304 node_destroy(ch); 304 node_destroy(ch);
305 } 305 }