summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-06-22 16:14:00 +0200
committerlouiz’ <louiz@louiz.org>2017-06-22 16:14:00 +0200
commit8a7166eef9d46ec15850cadb674edb2873cebecc (patch)
tree1eb4be5b07ddf9329df17ab5e90c0beeb51ae244 /src/database
parent4d55a120d8fa5564a439102ab97b43da589bf4f3 (diff)
downloadbiboumi-8a7166eef9d46ec15850cadb674edb2873cebecc.tar.gz
biboumi-8a7166eef9d46ec15850cadb674edb2873cebecc.tar.bz2
biboumi-8a7166eef9d46ec15850cadb674edb2873cebecc.tar.xz
biboumi-8a7166eef9d46ec15850cadb674edb2873cebecc.zip
Set the database pointer to nullptr after a close
Diffstat (limited to 'src/database')
-rw-r--r--src/database/database.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp
index ba69d39..246cdbc 100644
--- a/src/database/database.cpp
+++ b/src/database/database.cpp
@@ -176,6 +176,7 @@ std::vector<Database::MucLogLine> Database::get_muc_logs(const std::string& owne
void Database::close()
{
sqlite3_close_v2(Database::db);
+ Database::db = nullptr;
}
std::string Database::gen_uuid()