aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-07-22 17:28:43 +0000
committerdan <dan@noemail.net>2019-07-22 17:28:43 +0000
commite0ae3f69ebae948bf2eadb1b015e75bfb0f3cecc (patch)
tree42acd8e0fbf830fc748fbe4f826735c6ab8feba3 /src/expr.c
parentcda50737f4be40a02bf786f99cdcc5cb87bb568e (diff)
downloadsqlite-e0ae3f69ebae948bf2eadb1b015e75bfb0f3cecc.tar.gz
sqlite-e0ae3f69ebae948bf2eadb1b015e75bfb0f3cecc.zip
Fix a bug in the linked-list handling code added by commit [fd7316cd].
FossilOrigin-Name: 05080344dceafcfb670fbf01f7d69a1d713a54b6845f968a9cfe941fb53b13af
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 571e9e494..5d8fdea55 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1330,8 +1330,8 @@ static int gatherSelectWindowsCallback(Walker *pWalker, Expr *pExpr){
Window *pWin = pExpr->y.pWin;
assert( pWin );
assert( IsWindowFunc(pExpr) );
+ assert( pWin->ppThis==0 );
if( pSelect->pWin ){
- *pSelect->pWin->ppThis = pSelect->pWin->pNextWin;
pSelect->pWin->ppThis = &pWin->pNextWin;
}
pWin->pNextWin = pSelect->pWin;