aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9f9d676..331bd03 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,6 +4,7 @@
#include "repo.h"
#include "log.h"
+#include "lauxlib.h"
#include "curl/curl.h"
#include "stdio.h"
#include "stdlib.h"
@@ -25,7 +26,9 @@ int main(int argc, char *argv[]) {
pow_config config = {0};
- pow_open_config(&config, args.cfg_path);
+ lua_State* L = luaL_newstate();
+
+ pow_open_config(L, &config, args.cfg_path);
if (args.flags & POW_FLAG_QUERY) {
pow_repo_check_package(&config, args.package);