[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=9b7f2f0a7aef2adbd86c78e4faf01a7d552133c0
Commit:        9b7f2f0a7aef2adbd86c78e4faf01a7d552133c0
Parent:        68a2c6f0e755f5f19b5176aff614d1eaef7ca3d0
Author:        David Lutterkort <lutter redhat com>
AuthorDate:    Thu Sep 17 18:09:49 2009 -0700
Committer:     David Lutterkort <lutter redhat com>
CommitterDate: Mon Sep 21 17:39:57 2009 -0700

* src/regexp.c (regexp_compile): do not print anything on error

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]