Index: src/expr.c ================================================================== --- src/expr.c +++ src/expr.c @@ -10,11 +10,11 @@ ** ************************************************************************* ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** -** $Id: expr.c,v 1.100 2003/09/06 22:18:08 drh Exp $ +** $Id: expr.c,v 1.101 2003/09/23 10:25:33 drh Exp $ */ #include "sqliteInt.h" #include /* @@ -263,11 +263,11 @@ sqliteExprDelete(pExpr); return pList; } pList->a = a; } - if( pExpr || pName ){ + if( pList->a && (pExpr || pName) ){ i = pList->nExpr++; pList->a[i].pExpr = pExpr; pList->a[i].zName = 0; if( pName ){ sqliteSetNString(&pList->a[i].zName, pName->z, pName->n, 0);