[augeas-devel] augeas: master - Remove unneeded call to pathx_parse in aug_match

David Lutterkort lutter at fedoraproject.org
Sat Jan 31 00:57:53 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=8d0a5cb2b0daf801aa3aba577ee4a10b32ae46a5
Commit:        8d0a5cb2b0daf801aa3aba577ee4a10b32ae46a5
Parent:        da4e0b0f3ab8ccd83d6cb3e0cb7d0462fac1843b
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Sat Jan 24 23:35:06 2009 -0800
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Jan 30 16:54:44 2009 -0800

Remove unneeded call to pathx_parse in aug_match

---
 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))




More information about the augeas-devel mailing list