From 8112ac3371230d0d99733c4b71fb2fac3d610404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 24 Feb 2016 17:14:59 +0100 Subject: [core] explicitly initialize a few fields to null --- test/storage/offline_database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/storage/offline_database.cpp b/test/storage/offline_database.cpp index 82e07c208a..23269a98ed 100644 --- a/test/storage/offline_database.cpp +++ b/test/storage/offline_database.cpp @@ -72,7 +72,7 @@ public: } private: - sqlite3* db; + sqlite3* db = nullptr; bool locked = false; }; @@ -115,7 +115,7 @@ TEST(OfflineDatabase, SchemaVersion) { std::string path("test/fixtures/database/offline.db"); { - sqlite3* db; + sqlite3* db = nullptr; sqlite3_open_v2(path.c_str(), &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, nullptr); sqlite3_exec(db, "PRAGMA user_version = 1", nullptr, nullptr, nullptr); sqlite3_close_v2(db); -- cgit v1.2.1