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

Fix an uninitialized variable in CASE expression code generation.

FossilOrigin-Name: c8ffae05e13033ec7425bf0f002df31f550bb7f1
This commit is contained in:
drh
2016-08-23 17:30:55 +00:00
parent 12abf408ff
commit abb9d5f189
3 changed files with 8 additions and 7 deletions

View File

@@ -3821,6 +3821,7 @@ int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){
testcase( pX->op==TK_COLUMN );
exprToRegister(&tempX, exprCodeVector(pParse, &tempX, &regFree1));
testcase( regFree1==0 );
memset(&opCompare, 0, sizeof(opCompare));
opCompare.op = TK_EQ;
opCompare.pLeft = &tempX;
pTest = &opCompare;