1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Make sure the file structure is zeroed prior to calling the VFS to open a file.

FossilOrigin-Name: 29c4d0dd43d41650e54824afd70dd40f1b91cc86
This commit is contained in:
mistachkin
2011-09-17 15:34:50 +00:00
parent dfd2d9f6c9
commit f1c40f4fd4
3 changed files with 9 additions and 9 deletions

View File

@@ -208,7 +208,7 @@ int sqlite3OsOpenMalloc(
){
int rc = SQLITE_NOMEM;
sqlite3_file *pFile;
pFile = (sqlite3_file *)sqlite3Malloc(pVfs->szOsFile);
pFile = (sqlite3_file *)sqlite3MallocZero(pVfs->szOsFile);
if( pFile ){
rc = sqlite3OsOpen(pVfs, zFile, pFile, flags, pOutFlags);
if( rc!=SQLITE_OK ){