1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Remove unreachable branches from the PRAGMA integrity_check enhancement of

[b736519d3d2e93c7].

FossilOrigin-Name: 6d02fb233fb86f9907cc374d06a7ed71a638091d6e75abc199001c42eab51e5c
This commit is contained in:
drh
2024-02-27 15:33:54 +00:00
parent 8732fce985
commit 39670a5345
5 changed files with 17 additions and 15 deletions

View File

@@ -7142,9 +7142,11 @@ case OP_IntegrityCk: {
Mem *pnErr; /* Register keeping track of errors remaining */
assert( p->bIsReader );
assert( pOp->p4type==P4_INTARRAY );
nRoot = pOp->p2;
aRoot = pOp->p4.ai;
assert( nRoot>0 );
assert( aRoot!=0 );
assert( aRoot[0]==(Pgno)nRoot );
assert( pOp->p1>0 && (pOp->p1+1)<=(p->nMem+1 - p->nCursor) );
pnErr = &aMem[pOp->p1];