mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
call sqlite3_initialize() as recommended by docs
This commit is contained in:
parent
e15fb02d8a
commit
40c04be47b
1 changed files with 4 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue