aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-08-07 15:17:37 +0000
committerdrh <>2024-08-07 15:17:37 +0000
commitc76520c5b917e5ad108ec264328e6ab7ad08cec8 (patch)
tree0c8e0faf9e2ec526d05e16b52a2787322d249b64 /src
parent92d317f787fdc8342a60aee494217914e417b766 (diff)
downloadsqlite-c76520c5b917e5ad108ec264328e6ab7ad08cec8.tar.gz
sqlite-c76520c5b917e5ad108ec264328e6ab7ad08cec8.zip
Add a new assert() to help static analyzers understand that a pointer is
never NULL. FossilOrigin-Name: 433f2b942ee6f79d50ebe9b08fa3ea8162db6a10ce9d80e2bc193124baa1b083
Diffstat (limited to 'src')
-rw-r--r--src/vdbesort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vdbesort.c b/src/vdbesort.c
index 2a4be0f4c..239c0a0f3 100644
--- a/src/vdbesort.c
+++ b/src/vdbesort.c
@@ -563,6 +563,7 @@ static int vdbePmaReadBlob(
rc = vdbePmaReadBlob(p, nCopy, &aNext);
if( rc!=SQLITE_OK ) return rc;
assert( aNext!=p->aAlloc );
+ assert( aNext!=0 );
memcpy(&p->aAlloc[nByte - nRem], aNext, nCopy);
nRem -= nCopy;
}