diff options
| author | 2013-12-13 01:17:25 +0100 | |
|---|---|---|
| committer | 2013-12-13 01:17:25 +0100 | |
| commit | 380080c1764f09bbf6dc23978b47b1d8c6bb4165 (patch) | |
| tree | 1667eda177bf8fb6195aaf6daace601ef0596ecb /src | |
| parent | 39b3f63d2bf4a8f5e4b6ecf601cb00d3ff0190b7 (diff) | |
| download | libplist-380080c1764f09bbf6dc23978b47b1d8c6bb4165.tar.gz libplist-380080c1764f09bbf6dc23978b47b1d8c6bb4165.tar.bz2 | |
xplist: fix shadowed variable declaration
Diffstat (limited to 'src')
| -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) | |||
| 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 | } |
