From 380080c1764f09bbf6dc23978b47b1d8c6bb4165 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 13 Dec 2013 01:17:25 +0100 Subject: xplist: fix shadowed variable declaration --- src/xplist.c | 6 +++--- 1 file 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); } -- cgit v1.1-32-gdbae