From: Nathan Wagner Date: Sat, 11 Aug 2018 02:41:13 +0000 (+0000) Subject: use sqlite3_open_v2 X-Git-Tag: v0.1.6~67 X-Git-Url: https://pd.if.org/git/?a=commitdiff_plain;ds=sidebyside;h=23dc3b8e71186eec659fd2d0a95a809c64275666;p=zpackage use sqlite3_open_v2 --- diff --git a/lib/zpm.c b/lib/zpm.c index 1565bec..5bcf9da 100644 --- a/lib/zpm.c +++ b/lib/zpm.c @@ -298,7 +298,7 @@ int zpm_open(struct zpm *pkg, char *path) { pkg->pkgname = 0; pkg->installed = 0; - rc = sqlite3_open(path, &db); + rc = sqlite3_open_v2(path, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL); if (rc) { SQLERROR(sqlite3_errmsg(db)); sqlite3_close(db);