aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-10-17 23:15:31 +0000
committerdrh <drh@noemail.net>2011-10-17 23:15:31 +0000
commit057fc817d7776268fe052e6a42ebd3b7cd5ba985 (patch)
tree89217b1844b61542a43526220819db0edbd6681c /src
parent57db4a750951933a45fc17e185e313526017ae9c (diff)
downloadsqlite-057fc817d7776268fe052e6a42ebd3b7cd5ba985.tar.gz
sqlite-057fc817d7776268fe052e6a42ebd3b7cd5ba985.zip
Change the OP_JournalMode implementation so that it works even if a
substitute sqlite3PagerFilename() that might return NULL is used. FossilOrigin-Name: 491ff5fb2504173d6905e38b8ea35737338aaa84
Diffstat (limited to 'src')
-rw-r--r--src/vdbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbe.c b/src/vdbe.c
index 91e25bafc..7dcdf4621 100644
--- a/src/vdbe.c
+++ b/src/vdbe.c
@@ -5467,7 +5467,7 @@ case OP_JournalMode: { /* out2-prerelease */
** in temporary storage or if the VFS does not support shared memory
*/
if( eNew==PAGER_JOURNALMODE_WAL
- && (zFilename[0]==0 /* Temp file */
+ && (sqlite3Strlen30(zFilename)==0 /* Temp file */
|| !sqlite3PagerWalSupported(pPager)) /* No shared-memory support */
){
eNew = eOld;