diff options
author | drh <> | 2022-01-20 12:58:15 +0000 |
---|---|---|
committer | drh <> | 2022-01-20 12:58:15 +0000 |
commit | 98bb34c501dfa59b22c2a7110b7b76fb1df5c90d (patch) | |
tree | d2daf6e324e997c26036c27c0e0d076d478d540b /src | |
parent | d6b44ec32a5709cb56cc6f9d9a80c1a336f1a53c (diff) | |
download | sqlite-98bb34c501dfa59b22c2a7110b7b76fb1df5c90d.tar.gz sqlite-98bb34c501dfa59b22c2a7110b7b76fb1df5c90d.zip |
Fix harmless scan-build warnings.
FossilOrigin-Name: ab160e8bae3a4fc2067d73fe33542f261652985390fe9b0390a4f9c33a1990bf
Diffstat (limited to 'src')
-rw-r--r-- | src/select.c | 1 | ||||
-rw-r--r-- | src/vdbe.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c index 2d1b54b3a..a0fc3d90f 100644 --- a/src/select.c +++ b/src/select.c @@ -3436,6 +3436,7 @@ static int multiSelectOrderBy( for(i=2; i<nSelect; i+=2){ pSplit = pSplit->pPrior; } } pPrior = pSplit->pPrior; + assert( pPrior!=0 ); pSplit->pPrior = 0; pPrior->pNext = 0; assert( p->pOrderBy == pOrderBy ); diff --git a/src/vdbe.c b/src/vdbe.c index db9116e92..d4ff33141 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -677,7 +677,6 @@ static u64 filterHash(const Mem *aMem, const Op *pOp){ int i, mx; u64 h = 0; - i = pOp->p3; assert( pOp->p4type==P4_INT32 ); for(i=pOp->p3, mx=i+pOp->p4.i; i<mx; i++){ const Mem *p = &aMem[i]; |