[augeas-devel] [PATCH] Fix missing ref on an info struct in syntax.c(compile_minus)
David Lutterkort
dlutter at redhat.com
Thu May 29 22:44:10 UTC 2008
1 file changed, 1 insertion(+), 1 deletion(-)
src/syntax.c | 2 +-
# HG changeset patch
# User David Lutterkort <dlutter at redhat.com>
# Date 1212101039 25200
# Node ID d2e97aeba3d31120e3fb4e911b863c7230f12e5c
# Parent 2897efd2f46ffa065ff30e7ac6c6c7e10882059a
Fix missing ref on an info struct in syntax.c(compile_minus)
diff -r 2897efd2f46f -r d2e97aeba3d3 src/syntax.c
--- a/src/syntax.c Thu May 29 15:43:59 2008 -0700
+++ b/src/syntax.c Thu May 29 15:43:59 2008 -0700
@@ -1343,7 +1343,7 @@ static struct value *compile_minus(struc
struct regexp *re2 = v2->regexp;
struct regexp *re = regexp_minus(info, re1, re2);
if (re == NULL) {
- v = make_exn_value(info,
+ v = make_exn_value(ref(info),
"Regular expression subtraction 'r1 - r2' failed");
exn_printf_line(v, "r1: /%s/", re1->pattern->str);
exn_printf_line(v, "r2: /%s/", re2->pattern->str);
More information about the augeas-devel
mailing list