summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index ce09d99..6438bec 100644
--- a/lib.c
+++ b/lib.c
@@ -1490,7 +1490,7 @@ uc_printf(uc_vm *vm, size_t nargs)
static bool
uc_require_so(uc_vm *vm, const char *path, uc_value_t **res)
{
- void (*init)(uc_value_t *);
+ void (*init)(uc_vm *, uc_value_t *);
uc_value_t *scope;
struct stat st;
void *dlh;
@@ -1519,7 +1519,7 @@ uc_require_so(uc_vm *vm, const char *path, uc_value_t **res)
scope = ucv_object_new(vm);
- init(scope);
+ init(vm, scope);
*res = scope;