Fix a bulk-memory initialization problem in the expression list logic. (CVS 1130)
FossilOrigin-Name: d6549954408b01e5eaf865b9100739c94de28f16
diff --git a/src/expr.c b/src/expr.c
index a2482fe..41cdaf9 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 @@
}
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);