aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2007-05-08 18:04:46 +0000
committerdanielk1977 <danielk1977@noemail.net>2007-05-08 18:04:46 +0000
commitb4fc679463e60cc3a379da5e8c3994f56a59ebf8 (patch)
tree15e83103b251991ea954133cc0f0967265e8b2e2 /src/expr.c
parent84708bc93b9925aaa601345a8e3bfdce806c5cce (diff)
downloadsqlite-b4fc679463e60cc3a379da5e8c3994f56a59ebf8.tar.gz
sqlite-b4fc679463e60cc3a379da5e8c3994f56a59ebf8.zip
Fix a null-pointer dereference that follows a malloc() failure introduced in (3954). (CVS 3956)
FossilOrigin-Name: 251ba1981e32fb80818965ffe1ef455069e88abd
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index 9808af930..42a942bd0 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.286 2007/05/08 17:54:44 danielk1977 Exp $
+** $Id: expr.c,v 1.287 2007/05/08 18:04:46 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -663,7 +663,7 @@ void sqlite3ExprListCheckLength(
int iLimit,
const char *zObject
){
- if( pEList->nExpr>iLimit ){
+ if( pEList && pEList->nExpr>iLimit ){
sqlite3ErrorMsg(pParse, "too many columns in %s", zObject);
}
}