1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Remove an ALWAYS() from a branch in sqlite3ExprAddCollateToken() which can

be false following an OOM.
dbsqlfuzz 9e8516bf1e786c84e520ae43141b75b7399f8618.

FossilOrigin-Name: 6af4e6d054efd8445e1010aabd584f36e70dfad0de13bd0e2f1761cad4d9a7d6
This commit is contained in:
drh
2021-04-16 12:33:52 +00:00
parent 19c16c8771
commit 197561cd42
3 changed files with 8 additions and 8 deletions

View File

@@ -99,7 +99,7 @@ Expr *sqlite3ExprAddCollateToken(
if( pExpr==0 ) return 0;
if( pExpr->op==TK_VECTOR ){
ExprList *pList = pExpr->x.pList;
if( ALWAYS(pList!=0) ){
if( pList!=0 ){
int i;
for(i=0; i<pList->nExpr; i++){
pList->a[i].pExpr = sqlite3ExprAddCollateToken(pParse,pList->a[i].pExpr,