aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2022-01-24 20:16:37 +0000
committerdrh <>2022-01-24 20:16:37 +0000
commitb32b30930f10c852c70f99bc8a7b3d13f359b04a (patch)
treeaddee242c6b08a9900d47da3bae81b5205b99bd0 /src/expr.c
parent1da88b5ce634a7c53ba18d65072b5e44a415e800 (diff)
downloadsqlite-b32b30930f10c852c70f99bc8a7b3d13f359b04a.tar.gz
sqlite-b32b30930f10c852c70f99bc8a7b3d13f359b04a.zip
One of the ALWAYS() macros in the previous check-in could sometimes be
false, following an OOM. Remove it. Problem found by dbsqlfuzz. FossilOrigin-Name: 11df9187dad0eb33b0f6288b76d74f9700420ec855e8106b0bc71df48c485ad1
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 373b4a634..d58097cb6 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -209,7 +209,7 @@ CollSeq *sqlite3ExprCollSeq(Parse *pParse, const Expr *pExpr){
/* The Expr.x union is never used at the same time as Expr.pRight */
assert( ExprUseXList(p) );
assert( p->x.pList==0 || p->pRight==0 );
- if( p->x.pList!=0 && ALWAYS(!db->mallocFailed) ){
+ if( p->x.pList!=0 && !db->mallocFailed ){
int i;
for(i=0; ALWAYS(i<p->x.pList->nExpr); i++){
if( ExprHasProperty(p->x.pList->a[i].pExpr, EP_Collate) ){