aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2021-10-30 17:30:48 +0000
committerdan <Dan Kennedy>2021-10-30 17:30:48 +0000
commite7c23433fb77aa3741e6008d624039392f6af7d0 (patch)
treeaae0e1a9d7fbca33f1de6bb46b573e16f20dfd58 /src/os_unix.c
parent60a2fc8244db40752c7b8d09ea3e8432b80bed03 (diff)
parente4e1af5efb91767192cd440ebd7ec7999f6751f4 (diff)
downloadsqlite-e7c23433fb77aa3741e6008d624039392f6af7d0.tar.gz
sqlite-e7c23433fb77aa3741e6008d624039392f6af7d0.zip
Merge trunk changes into this branch.
FossilOrigin-Name: 638c1b0c50229800067eb1ba29d829b4d6e008256c21a1f67b4ce4d19ea307b3
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index d45fdabab..bc6063dae 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6125,6 +6125,11 @@ static int unixOpen(
}
memset(p, 0, sizeof(unixFile));
+#ifdef SQLITE_ASSERT_NO_FILES
+ /* Applications that never read or write a persistent disk files */
+ assert( zName==0 );
+#endif
+
if( eType==SQLITE_OPEN_MAIN_DB ){
UnixUnusedFd *pUnused;
pUnused = findReusableFd(zName, flags);