From 4bc72fcef92aad1cc79d62a6624c78231f9b2ef1 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 4 Aug 2023 15:31:16 +0200 Subject: [PATCH] error on missing db --- src/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index 245166e..8c2d508 100644 --- a/src/api.c +++ b/src/api.c @@ -67,7 +67,7 @@ VARDECL sqlite3 * connection = NULL; DECL int api_init(void) { - DBERR(sqlite3_open(db, &connection)); + DBERR(sqlite3_open_v2(db, &connection, SQLITE_OPEN_READONLY, NULL)); // dont you fucking dare to remove this spacing DBERR(stmt_prepare(remind_stmt)); DBERR(stmt_prepare(set_repo_stmt));