mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
:-) (CVS 1697)
FossilOrigin-Name: 5d773b5d4e9c23b81f53afd0cef7bd2300fff329
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
** other files are for internal use by SQLite and should not be
|
||||
** accessed by users of the library.
|
||||
**
|
||||
** $Id: main.c,v 1.9 2000/06/05 16:01:39 drh Exp $
|
||||
** $Id: main.c,v 1.10 2000/06/07 14:42:27 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -174,6 +174,7 @@ sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){
|
||||
/* Open the backend database driver */
|
||||
db->pBe = sqliteDbbeOpen(zFilename, (mode&0222)!=0, mode!=0, pzErrMsg);
|
||||
if( db->pBe==0 ){
|
||||
sqliteStrRealloc(pzErrMsg);
|
||||
sqliteFree(db);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user