script->path = strncpy(pptr, path, pathlen);
- uc_search_path_init(&config.module_search_path);
uc_vm_init(&script->vm, &config);
rpc_ucode_init_globals(script);
fprintf(stderr, "Failed to dlopen() ucode.so: %s, dynamic ucode plugins may fail\n",
dlerror());
}
+
+ /* initialize default module search path */
+ uc_search_path_init(&config.module_search_path);
+
if ((d = opendir(RPC_UCSCRIPT_DIRECTORY)) != NULL) {
while ((e = readdir(d)) != NULL) {
snprintf(path, sizeof(path), RPC_UCSCRIPT_DIRECTORY "/%s", e->d_name);