summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 0b1f663..2c91d1d 100644
--- a/lib.c
+++ b/lib.c
@@ -1597,7 +1597,7 @@ uc_require_path(uc_vm_t *vm, const char *path_template, const char *name, uc_val
bool rv;
modtable = ucv_property_get(uc_vm_scope_get(vm), "modules");
- *res = ucv_object_get(modtable, name, &rv);
+ *res = ucv_get(ucv_object_get(modtable, name, &rv));
if (rv)
goto out;