aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2006-01-13 06:33:23 +0000
committerdanielk1977 <danielk1977@noemail.net>2006-01-13 06:33:23 +0000
commite725929686092f5450cfc7f2c27383fe0874a872 (patch)
treef1777bd3bae1ee3a078c3ec6136525eee02d5c08 /src/expr.c
parent777e4c43f28d54370bfefefdea5a18f6905e9c4b (diff)
downloadsqlite-e725929686092f5450cfc7f2c27383fe0874a872.tar.gz
sqlite-e725929686092f5450cfc7f2c27383fe0874a872.zip
Minor modification to restoreOrClearCursorPosition() to improve efficiency. Do not allocate the extra 8-bytes if memory-management is not enabled. (CVS 2936)
FossilOrigin-Name: dd705955429d847af85ffaf248976bcd1d861852
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 108f69db0..e8a89f464 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.248 2006/01/11 21:41:22 drh Exp $
+** $Id: expr.c,v 1.249 2006/01/13 06:33:24 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -355,7 +355,7 @@ void sqlite3ExprAssignVarNumber(Parse *pParse, Expr *pExpr){
pExpr->iTable = ++pParse->nVar;
if( pParse->nVarExpr>=pParse->nVarExprAlloc-1 ){
pParse->nVarExprAlloc += pParse->nVarExprAlloc + 10;
- sqlite3ReallocOrFree((void**)&pParse->apVarExpr,
+ sqliteReallocOrFree((void**)&pParse->apVarExpr,
pParse->nVarExprAlloc*sizeof(pParse->apVarExpr[0]) );
}
if( !sqlite3ThreadDataReadOnly()->mallocFailed ){