From: Richard W.M. Jones Date: Tue, 6 Jun 2017 14:13:37 +0000 (+0100) Subject: Path parameter did not work in Augeas.rm and Augeas.count_matches bindings. X-Git-Tag: v0.6~32 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=eb7b3379f07ff52c849b953b1a38cb2d4c3d43bf;p=ocaml-augeas.git Path parameter did not work in Augeas.rm and Augeas.count_matches bindings. --- 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);