call sqlite3_initialize() as recommended by docs

This commit is contained in:
Eric House 2014-01-02 07:09:23 -08:00
parent e15fb02d8a
commit 40c04be47b

View file

@ -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 =