]> pd.if.org Git - zpackage/commitdiff
use sqlite3_open_v2
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 11 Aug 2018 02:41:13 +0000 (02:41 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 11 Aug 2018 02:41:13 +0000 (02:41 +0000)
lib/zpm.c

index 1565bec495fbd3c23c7eb316c3a99954d1029e5e..5bcf9da4e56a10544a439205c1affd34e87cb1b9 100644 (file)
--- 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);