1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

For for the previous check-in: Always enable the nUri variable, even

when debugging is turned off.

FossilOrigin-Name: f84a15394c369cbdb6fba87c603a609722cf1f499626c7f20699060273ab5081
This commit is contained in:
drh
2019-11-12 16:21:27 +00:00
parent 746461f1b8
commit d2c40e9310
3 changed files with 7 additions and 11 deletions

View File

@@ -4761,9 +4761,7 @@ int sqlite3PagerOpen(
u32 szPageDflt = SQLITE_DEFAULT_PAGE_SIZE; /* Default page size */
const char *zUri = 0; /* URI args to copy */
int nUriByte = 1; /* Number of bytes of URI args at *zUri */
#ifdef SQLITE_DEBUG
int nUri = 0; /* Number of URI parameters */
#endif
/* Figure out how much space is required for each journal file-handle
** (there are two of them, the main journal and the sub-journal). */
@@ -4802,9 +4800,7 @@ int sqlite3PagerOpen(
while( *z ){
z += strlen(z)+1;
z += strlen(z)+1;
#ifdef SQLITE_DEBUG
nUri++;
#endif
}
nUriByte = (int)(&z[2] - zUri);
assert( nUriByte>=1 );