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

Fix a bug in test code (test_vfs.c).

FossilOrigin-Name: 772a3845f8ef5cd3131992c45f6ce607977820f3
This commit is contained in:
dan
2011-01-14 11:51:28 +00:00
parent 5b3696e8a6
commit 47e909bb15
6 changed files with 12 additions and 21 deletions

View File

@@ -540,6 +540,7 @@ static int tvfsOpen(
pFd->zFilename = zName;
pFd->pVfs = pVfs;
pFd->pReal = (sqlite3_file *)&pFd[1];
memset(pTestfile, 0, sizeof(TestvfsFile));
pTestfile->pFd = pFd;
/* Evaluate the Tcl script: