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

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

Reply via email to