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