return;
}
- opts = ucl_object_lookup (cfg->rcl_obj, "options");
- if (opts != NULL) {
- opts = ucl_object_lookup (opts, "lua_path");
- if (opts != NULL && ucl_object_type (opts) == UCL_STRING) {
- additional_path = ucl_object_tostring (opts);
+ if (cfg) {
+ opts = ucl_object_lookup (cfg->rcl_obj, "options");
+ if (opts != NULL) {
+ opts = ucl_object_lookup (opts, "lua_path");
+ if (opts != NULL && ucl_object_type (opts) == UCL_STRING) {
+ additional_path = ucl_object_tostring (opts);
+ }
}
}
}
lua_setglobal (L, "tests_list");
+ rspamd_lua_set_path (L, NULL);
lua_pushcfunction (L, traceback);
luaL_loadfile (L, rp);