From 40c04be47b70b55dbf9f18ce5c523682c95f634c Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 2 Jan 2014 07:09:23 -0800 Subject: [PATCH] call sqlite3_initialize() as recommended by docs --- xwords4/linux/gamesdb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/linux/gamesdb.c b/xwords4/linux/gamesdb.c index 62bb42af6..b0de24305 100644 --- a/xwords4/linux/gamesdb.c +++ b/xwords4/linux/gamesdb.c @@ -28,8 +28,11 @@ static void getColumnText( sqlite3_stmt *ppStmt, int iCol, XP_UCHAR* buf, sqlite3* openGamesDB( const char* dbName ) { + int result = sqlite3_initialize(); + XP_ASSERT( SQLITE_OK == result ); + sqlite3* pDb = NULL; - int result = sqlite3_open( dbName, &pDb ); + result = sqlite3_open( dbName, &pDb ); XP_ASSERT( SQLITE_OK == result ); const char* createGamesStr =