diff options
author | drh <drh@noemail.net> | 2003-12-10 03:13:43 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-12-10 03:13:43 +0000 |
commit | 256ada0fda3c4c2293766f21b74358191d3e9bb3 (patch) | |
tree | f78e1b69e8d767473a5e00fd285f9ab7bf7209bf /src/expr.c | |
parent | 0f18bfa78955c0edd76b6a89306817f0be356a3b (diff) | |
download | sqlite-256ada0fda3c4c2293766f21b74358191d3e9bb3.tar.gz sqlite-256ada0fda3c4c2293766f21b74358191d3e9bb3.zip |
Fix a bulk-memory initialization problem in the expression list logic. (CVS 1130)
FossilOrigin-Name: d6549954408b01e5eaf865b9100739c94de28f16
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index a2482fe0c..41cdaf949 100644 --- a/src/expr.c +++ b/src/expr.c @@ -12,7 +12,7 @@ ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** -** $Id: expr.c,v 1.101 2003/09/23 10:25:33 drh Exp $ +** $Id: expr.c,v 1.102 2003/12/10 03:13:44 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -267,8 +267,8 @@ ExprList *sqliteExprListAppend(ExprList *pList, Expr *pExpr, Token *pName){ } if( pList->a && (pExpr || pName) ){ i = pList->nExpr++; + memset(&pList->a[i], 0, sizeof(pList->a[i])); pList->a[i].pExpr = pExpr; - pList->a[i].zName = 0; if( pName ){ sqliteSetNString(&pList->a[i].zName, pName->z, pName->n, 0); sqliteDequote(pList->a[i].zName); |