From 3922b29d87df67657cc0a9a7f37290967cec725b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C4=83t=C4=83lin=20Badea?= <catalin.badea392@gmail.com>
Date: Sat, 15 Sep 2012 17:20:25 +0300
Subject: Fix HistoryStorage from crashing

Fix a crash related to HistoryStorage asynchronous access.

License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.

diff --git a/Swiften/History/SQLiteHistoryStorage.cpp b/Swiften/History/SQLiteHistoryStorage.cpp
index e86153a..04bd00f 100644
--- a/Swiften/History/SQLiteHistoryStorage.cpp
+++ b/Swiften/History/SQLiteHistoryStorage.cpp
@@ -26,10 +26,7 @@ inline std::string getEscapedString(const std::string& s) {
 namespace Swift {
 
 SQLiteHistoryStorage::SQLiteHistoryStorage(const std::string& file) : db_(0) {
-	sqlite3_vfs vfs;
-
-	sqlite3async_initialize(NULL, true);
-	sqlite3_vfs_register(&vfs, false);
+	sqlite3async_initialize(NULL, false);
 
 	thread_ = new boost::thread(boost::bind(&SQLiteHistoryStorage::run, this));
 
-- 
cgit v0.10.2-6-g49f6