Gitweb:        
http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=ed870909996445b9e8e549be878f31c2039486ab
Commit:        ed870909996445b9e8e549be878f31c2039486ab
Parent:        a7a422ab28781148d703ecb1abc254847c51a2bf
Author:        David Lutterkort <[email protected]>
AuthorDate:    Wed Jan 13 17:09:06 2010 -0800
Committer:     David Lutterkort <[email protected]>
CommitterDate: Thu Jan 14 09:31:30 2010 -0800

* src/fa.c (fa_as_regexp): fin only accepting state, no trans fin->fin

---
 src/fa.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/fa.c b/src/fa.c
index f0d067a..55eb318 100644
--- a/src/fa.c
+++ b/src/fa.c
@@ -3953,10 +3953,11 @@ int fa_as_regexp(struct fa *fa, char **regexp, size_t 
*regexp_len) {
         r = convert_trans_to_re(s);
         if (r < 0)
             goto error;
-        if (s->accept) {
+        if (s->accept && s != fin) {
             r = add_new_re_trans(s, fin, ref(eps));
             if (r < 0)
                 goto error;
+            s->accept = 0;
         }
     }
 

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

Reply via email to