aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2021-10-02 17:46:24 +0000
committerdrh <>2021-10-02 17:46:24 +0000
commit952f35b24d9e140c5c42df1e61c18928890c64b8 (patch)
treeb145d9453508f824404dfba0446feb92768843c7 /src/expr.c
parent9673cd0de7dd2dbc4fd1c0b082e27c5e00f67c61 (diff)
downloadsqlite-952f35b24d9e140c5c42df1e61c18928890c64b8.tar.gz
sqlite-952f35b24d9e140c5c42df1e61c18928890c64b8.zip
Fix a harmless static-analyzer warning in sqlite3ExprCode().
FossilOrigin-Name: 918c22e82ae6e366ddd094d337ed73fd23878c51745045519ed700113832545c
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 d121fbfd2..14fe8e5bd 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -4798,7 +4798,7 @@ void sqlite3ExprCode(Parse *pParse, Expr *pExpr, int target){
inReg = sqlite3ExprCodeTarget(pParse, pExpr, target);
if( inReg!=target ){
u8 op;
- if( ExprHasProperty(pExpr,EP_Subquery) ){
+ if( ALWAYS(pExpr) && ExprHasProperty(pExpr,EP_Subquery) ){
op = OP_Copy;
}else{
op = OP_SCopy;