summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-13 01:17:25 +0100
committerGravatar Nikias Bassen2013-12-13 01:17:25 +0100
commit380080c1764f09bbf6dc23978b47b1d8c6bb4165 (patch)
tree1667eda177bf8fb6195aaf6daace601ef0596ecb /src/xplist.c
parent39b3f63d2bf4a8f5e4b6ecf601cb00d3ff0190b7 (diff)
downloadlibplist-380080c1764f09bbf6dc23978b47b1d8c6bb4165.tar.gz
libplist-380080c1764f09bbf6dc23978b47b1d8c6bb4165.tar.bz2
xplist: fix shadowed variable declaration
Diffstat (limited to 'src/xplist.c')
-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)
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);
}