[augeas-devel] [PATCH 10/11] Remove unneeded call to pathx_parse in aug_match

David Lutterkort lutter at redhat.com
Mon Jan 26 05:41:23 UTC 2009


---
 src/augeas.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/augeas.c b/src/augeas.c
index 8525adc..a319683 100644
--- a/src/augeas.c
+++ b/src/augeas.c
@@ -563,8 +563,6 @@ int aug_match(const struct augeas *aug, const char *pathin, char ***matches) {
         if (! TREE_HIDDEN(tree))
             cnt += 1;
     }
-    free_pathx(p);
-    p = NULL;
 
     if (matches == NULL)
         return cnt;
@@ -573,8 +571,6 @@ int aug_match(const struct augeas *aug, const char *pathin, char ***matches) {
     if (*matches == NULL)
         goto error;
 
-    pathx_parse(aug->origin, pathin, &p);
-
     int i = 0;
     for (tree = pathx_first(p); tree != NULL; tree = pathx_next(p)) {
         if (TREE_HIDDEN(tree))
-- 
1.6.0.6




More information about the augeas-devel mailing list