[augeas-devel] [PATCH 2/3] * src/regexp.c (regexp_compile): do not print anything on error

David Lutterkort lutter at redhat.com
Tue Sep 22 01:00:52 UTC 2009


---
 src/regexp.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/regexp.c b/src/regexp.c
index f6a851f..7286a5b 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -315,12 +315,8 @@ int regexp_compile(struct regexp *r) {
     re_syntax_options = old_syntax;
 
     r->re->regs_allocated = REGS_REALLOCATE;
-    if (c != NULL) {
-        char *p = escape(r->pattern->str, -1);
-        syntax_error(r->info, "invalid regexp /%s/: %s", p, c);
-        free(p);
+    if (c != NULL)
         return -1;
-    }
     return 0;
 }
 
-- 
1.6.2.5




More information about the augeas-devel mailing list