diff options
author | drh <> | 2021-10-04 22:34:38 +0000 |
---|---|---|
committer | drh <> | 2021-10-04 22:34:38 +0000 |
commit | 7d4c94bc0fc8fbf9359f57a90c2c19567d87df02 (patch) | |
tree | 9b1ae8d354ebab6ef214d15da4c653090de2ae19 /ext/rtree/rtree.c | |
parent | d9403bc6428c9e925c95503a4071c8f3add7e47a (diff) | |
download | sqlite-7d4c94bc0fc8fbf9359f57a90c2c19567d87df02.tar.gz sqlite-7d4c94bc0fc8fbf9359f57a90c2c19567d87df02.zip |
Fix harmless static-analyzer warnings.
FossilOrigin-Name: 32f33f356931242b59c01b5df7e180941231e3d9c91577ad33aa4a01e9d59092
Diffstat (limited to 'ext/rtree/rtree.c')
-rw-r--r-- | ext/rtree/rtree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c index 946cc6377..0e9a9ba0b 100644 --- a/ext/rtree/rtree.c +++ b/ext/rtree/rtree.c @@ -2200,7 +2200,7 @@ static int ChooseLeaf( int nCell = NCELL(pNode); RtreeCell cell; - RtreeNode *pChild; + RtreeNode *pChild = 0; RtreeCell *aCell = 0; @@ -2558,6 +2558,7 @@ static int updateMapping( pChild->pParent = pNode; } } + if( NEVER(pNode==0) ) return SQLITE_ERROR; return xSetMapping(pRtree, iRowid, pNode->iNode); } |