From 0aa1ed9464249cbce4e2941b176437e98de173f5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 8 Mar 2024 21:38:31 -0500 Subject: [PATCH] Fix a failure requesting more blobs. --- src/ssb.rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index 93fd56f0..a08e32fb 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -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); }