From 2f5f00a1021d52d1d0e3594b83274c73cd762367 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 21 Sep 2017 10:42:39 +1000 Subject: [PATCH] Fix bug --- users.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users.c b/users.c index 5610071..17f73ba 100644 --- a/users.c +++ b/users.c @@ -201,6 +201,9 @@ int msgbase_is_subscribed(int conference, int msgbase) { snprintf(buffer, PATH_MAX, "%s/users.sq3", conf.bbs_path); + + rc = sqlite3_open(buffer, &db); + if (rc != SQLITE_OK) { dolog("Cannot open database: %s", sqlite3_errmsg(db)); sqlite3_close(db);