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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user