aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-09-30 01:25:04 +0000
committerdrh <drh@noemail.net>2017-09-30 01:25:04 +0000
commit508e2d00f34f2a4d8a04130de6bf2cf44eeb1921 (patch)
tree490af6fb4f99416c88b6f571b82ee1eed5455fa2 /src/expr.c
parent25c221eb1dcc72ac0e524c605d61042ae91a6fe8 (diff)
downloadsqlite-508e2d00f34f2a4d8a04130de6bf2cf44eeb1921.tar.gz
sqlite-508e2d00f34f2a4d8a04130de6bf2cf44eeb1921.zip
Fix unreachable conditionals and revise a testcase that was made obsolete by
the changes on this branch. FossilOrigin-Name: 71f0adf7ca6824c3aba69104b9976dbb71b377474529e1a36220b4804293501e
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/expr.c b/src/expr.c
index 8282c99a4..0b922cd0f 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1712,12 +1712,11 @@ void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
u32 sqlite3ExprListFlags(const ExprList *pList){
int i;
u32 m = 0;
- if( pList ){
- for(i=0; i<pList->nExpr; i++){
- Expr *pExpr = pList->a[i].pExpr;
- assert( pExpr!=0 );
- m |= pExpr->flags;
- }
+ assert( pList!=0 );
+ for(i=0; i<pList->nExpr; i++){
+ Expr *pExpr = pList->a[i].pExpr;
+ assert( pExpr!=0 );
+ m |= pExpr->flags;
}
return m;
}