Fix a failure requesting more blobs.
This commit is contained in:
parent
cb94ed6a2a
commit
0aa1ed9464
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user