mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Reset the value of a status variable in SQLite backend before using it in a loop
This commit is contained in:
parent
0b3b5e2ef2
commit
22e78c3c24
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
// 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);
|
stmt = unique_stmt_ptr(get_expiry_last_run_stmt.get(), sqlite3_reset);
|
||||||
|
status = SQLITE_OK;
|
||||||
while ( status != SQLITE_ROW ) {
|
while ( status != SQLITE_ROW ) {
|
||||||
status = sqlite3_step(stmt.get());
|
status = sqlite3_step(stmt.get());
|
||||||
if ( status == SQLITE_ROW ) {
|
if ( status == SQLITE_ROW ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue