diff options
Diffstat (limited to 'src/database/sqlite/sqlite_functions.c')
-rw-r--r-- | src/database/sqlite/sqlite_functions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database/sqlite/sqlite_functions.c b/src/database/sqlite/sqlite_functions.c index c1be331081..fab3847c27 100644 --- a/src/database/sqlite/sqlite_functions.c +++ b/src/database/sqlite/sqlite_functions.c @@ -518,6 +518,7 @@ void sql_close_database(void) rc = sqlite3_close_v2(db_meta); if (unlikely(rc != SQLITE_OK)) error_report("Error %d while closing the SQLite database, %s", rc, sqlite3_errstr(rc)); + db_meta = NULL; } int exec_statement_with_uuid(const char *sql, uuid_t *uuid) |