summaryrefslogtreecommitdiff
path: root/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'db.c')
-rw-r--r--db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/db.c b/db.c
index 0c463d9..08e7aec 100644
--- a/db.c
+++ b/db.c
@@ -73,6 +73,7 @@ void db_init(void) {
/* Prepare statements */
if ((r = sqlite3_prepare_v2(db, "SELECT * FROM stats_global;", -1, &stmt_global_stat, NULL))) {
+ errmsg = (char *) sqlite3_errstr(r);
goto sql_err;
}
}