Augeas.matches: Fix silly typo in binding.
[ocaml-augeas.git] / augeas_c.c
index 3cc1021..0b535d6 100644 (file)
@@ -1,5 +1,5 @@
 /* Augeas OCaml bindings
- * Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
+ * Copyright (C) 2008-2012 Red Hat Inc., Richard W.M. Jones
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -216,7 +216,7 @@ ocaml_augeas_match (value tv, value pathv)
   CAMLparam2 (tv, pathv);
   CAMLlocal3 (rv, v, cons);
   augeas_t t = Augeas_t_val (tv);
-  char *path = String_val (path);
+  char *path = String_val (pathv);
   char **matches;
   int r, i;