diff options
author | drh <drh@noemail.net> | 2002-10-31 00:09:39 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-10-31 00:09:39 +0000 |
commit | 1f3e905cd0d7f74cb5f060fc87f773f3d1d20531 (patch) | |
tree | a16fba96541ee72aae2c7596bbebcb8a4358ba51 /src/expr.c | |
parent | bd1edfa3211291c5b6a9e9f3c05b5134e04195e5 (diff) | |
download | sqlite-1f3e905cd0d7f74cb5f060fc87f773f3d1d20531.tar.gz sqlite-1f3e905cd0d7f74cb5f060fc87f773f3d1d20531.zip |
Fix an assert that might fail if malloc() fails. (CVS 774)
FossilOrigin-Name: 8ad018944c3aa8f58e1c68b1fa634ef922d6476f
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index b2ec92e2e..21c2c0308 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.82 2002/10/22 23:38:04 drh Exp $ +** $Id: expr.c,v 1.83 2002/10/31 00:09:40 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -172,7 +172,8 @@ ExprList *sqliteExprListDup(ExprList *p){ ** the names of columns in the result set needs this information */ sqliteTokenCopy(&pNewExpr->span, &pOldExpr->span); } - assert( pNewExpr==0 || pNewExpr->span.z!=0 || pOldExpr->span.z==0 ); + assert( pNewExpr==0 || pNewExpr->span.z!=0 + || pOldExpr->span.z==0 || sqlite_malloc_failed ); pNew->a[i].zName = sqliteStrDup(p->a[i].zName); pNew->a[i].sortOrder = p->a[i].sortOrder; pNew->a[i].isAgg = p->a[i].isAgg; |