Fix a failure requesting more blobs.

This commit is contained in:
Cory McWilliams 2024-03-08 21:38:31 -05:00
parent cb94ed6a2a
commit 0aa1ed9464

View File

@ -30,7 +30,8 @@ static int64_t _get_global_setting_int64(tf_ssb_t* ssb, const char* name, int64_
{
if (sqlite3_bind_text(statement, 1, name, -1, NULL) == SQLITE_OK)
{
if (sqlite3_step(statement) == SQLITE_ROW)
if (sqlite3_step(statement) == SQLITE_ROW &&
sqlite3_column_type(statement, 0) != SQLITE_NULL)
{
result = sqlite3_column_int64(statement, 0);
}