diff options
-rw-r--r-- | src/xplist.c | 6 |
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) if (isUIDNode) { unsigned int num = node_n_children(node); - unsigned int i; - for (i = num; i > 0; i--) { - node_t* ch = node_nth_child(node, i-1); + unsigned int j; + for (j = num; j > 0; j--) { + node_t* ch = node_nth_child(node, j-1); node_detach(node, ch); node_destroy(ch); } |