Gitweb:        
http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=f1803bfee5cadaec4cfb58add9bb57fdc631ae62
Commit:        f1803bfee5cadaec4cfb58add9bb57fdc631ae62
Parent:        a17bd080ed1823650a64d20b36d6ac1b1a1b1984
Author:        David Lutterkort <[email protected]>
AuthorDate:    Wed Oct 21 15:25:03 2009 +0200
Committer:     David Lutterkort <[email protected]>
CommitterDate: Wed Oct 21 15:25:03 2009 +0200

* src/pathx.c (clone_nodeset): properly set size of the clone

The size of the clone is the number of nodes in the original nodeset, not
the size of the original nodeset.
---
 src/pathx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pathx.c b/src/pathx.c
index 75f1aa6..89e2663 100644
--- a/src/pathx.c
+++ b/src/pathx.c
@@ -478,7 +478,7 @@ clone_nodeset(struct nodeset *ns, struct state *state)
         return NULL;
     }
     clone->used = ns->used;
-    clone->size = ns->size;
+    clone->size = ns->used;
     for (int i=0; i < ns->used; i++)
         clone->nodes[i] = ns->nodes[i];
     return clone;

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to