summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-02-24 17:14:59 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-03-04 16:01:41 -0800
commit8112ac3371230d0d99733c4b71fb2fac3d610404 (patch)
tree4bc0abb7e48f4b675e98d9a392a29deb8e6285fe /test
parent661e9e7f49d6aadbd9c14a99b213d8fa0653b469 (diff)
downloadqtlocation-mapboxgl-8112ac3371230d0d99733c4b71fb2fac3d610404.tar.gz
[core] explicitly initialize a few fields to null
Diffstat (limited to 'test')
-rw-r--r--test/storage/offline_database.cpp4
1 files changed, 2 insertions, 2 deletions
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);