From eb7b3379f07ff52c849b953b1a38cb2d4c3d43bf Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 6 Jun 2017 15:13:37 +0100 Subject: [PATCH] Path parameter did not work in Augeas.rm and Augeas.count_matches bindings. --- augeas-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/augeas-c.c b/augeas-c.c index 3d3cb27..4818116 100644 --- a/augeas-c.c +++ b/augeas-c.c @@ -201,7 +201,7 @@ ocaml_augeas_rm (value tv, value pathv) { CAMLparam2 (tv, pathv); augeas_t t = Augeas_t_val (tv); - char *path = String_val (path); + char *path = String_val (pathv); int r; r = aug_rm (t, path); @@ -248,7 +248,7 @@ ocaml_augeas_count_matches (value tv, value pathv) { CAMLparam2 (tv, pathv); augeas_t t = Augeas_t_val (tv); - char *path = String_val (path); + char *path = String_val (pathv); int r; r = aug_match (t, path, NULL); -- 1.8.3.1