1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Make sure sqlite3_open16() always zeros the db return pointer if

SQLite initialization fails. (CVS 6552)

FossilOrigin-Name: 057c7d171397e19c8f3ac2362ea45f2b4a50530c
This commit is contained in:
drh
2009-04-28 04:47:31 +00:00
parent 709915da2a
commit e0d0f8ee4d
3 changed files with 9 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.540 2009/04/27 18:46:06 drh Exp $
** $Id: main.c,v 1.541 2009/04/28 04:47:31 drh Exp $
*/
#include "sqliteInt.h"
@@ -1511,6 +1511,7 @@ static int openDatabase(
CollSeq *pColl;
int isThreadsafe;
*ppDb = 0;
#ifndef SQLITE_OMIT_AUTOINIT
rc = sqlite3_initialize();
if( rc ) return rc;