1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix an assert() failing on OSX.

FossilOrigin-Name: dca8763872aa6244cb1a0f519167b360a6372d0d
This commit is contained in:
dan
2010-10-05 11:33:15 +00:00
parent 0a9312d92d
commit 0015739ae5
3 changed files with 17 additions and 8 deletions

View File

@@ -4077,11 +4077,20 @@ static int fillInUnixFile(
*/
UNUSED_PARAMETER(isDelete);
/* Usually the path zFilename should not be a relative pathname. The
** exception is when opening the proxy "conch" file in builds that
** include the special Apple locking styles.
*/
assert( zFilename==0 || zFilename[0]=='/'
#if defined(__APPLE__) && SQLITE_ENABLE_LOCKING_STYLE
|| pVfs->pAppData==(void*)&autolockIoFinder
#endif
);
OSTRACE(("OPEN %-3d %s\n", h, zFilename));
pNew->h = h;
pNew->dirfd = dirfd;
pNew->fileFlags = 0;
assert( zFilename==0 || zFilename[0]=='/' ); /* Never a relative pathname */
pNew->zPath = zFilename;
#if OS_VXWORKS