summaryrefslogtreecommitdiff
path: root/src/lua-apk.c
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-04-28 13:28:32 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-04-28 13:28:32 +0300
commit5c349335c76d8b6f1f1e721096d71e3b16f13dbc (patch)
tree4380c3160edbe2349e09ce84237779b6ae45fc5c /src/lua-apk.c
parentba7b50c0f8ac7c8a88b03856037d9ca6618cccd5 (diff)
downloadapk-tools-5c349335c76d8b6f1f1e721096d71e3b16f13dbc.tar.gz
apk-tools-5c349335c76d8b6f1f1e721096d71e3b16f13dbc.tar.bz2
apk-tools-5c349335c76d8b6f1f1e721096d71e3b16f13dbc.tar.xz
apk-tools-5c349335c76d8b6f1f1e721096d71e3b16f13dbc.zip
db: separate init from open
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");