another fix for new users
This commit is contained in:
parent
aa2e4bced8
commit
999ec8871d
@ -54,11 +54,11 @@ static void open_users_db_or_die(sqlite3 **db) {
|
||||
}
|
||||
assert(db != NULL);
|
||||
sqlite3_busy_timeout(*db, 5000);
|
||||
rc = sqlite3_exec(db, create_sql, 0, 0, &err_msg);
|
||||
rc = sqlite3_exec(*db, create_sql, 0, 0, &err_msg);
|
||||
if (rc != SQLITE_OK) {
|
||||
dolog("SQL error: %s", err_msg);
|
||||
sqlite3_free(err_msg);
|
||||
sqlite3_close(db);
|
||||
sqlite3_close(*db);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user