summaryrefslogtreecommitdiff
path: root/src/lua-apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua-apk.c')
-rw-r--r--src/lua-apk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua-apk.c b/src/lua-apk.c
index e79e311..532577a 100644
--- a/src/lua-apk.c
+++ b/src/lua-apk.c
@@ -172,6 +172,7 @@ static int Papk_db_open(lua_State *L)
luaL_getmetatable(L, APK_DB_META);
lua_setmetatable(L, -2);
+ apk_db_init(db);
r = apk_db_open(db, &opts);
if (r != 0)
luaL_error(L, "apk_db_open() failed");