Reset the value of a status variable in SQLite backend before using it in a loop

This commit is contained in:
Tim Wojtulewicz 2025-07-11 22:38:48 -07:00
parent 0b3b5e2ef2
commit 22e78c3c24

View file

@ -518,6 +518,7 @@ void SQLite::DoExpire(double current_network_time) {
// Check if the expiration control key is less than the interval. Exit if not.
stmt = unique_stmt_ptr(get_expiry_last_run_stmt.get(), sqlite3_reset);
status = SQLITE_OK;
while ( status != SQLITE_ROW ) {
status = sqlite3_step(stmt.get());
if ( status == SQLITE_ROW ) {