aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-12-14 17:24:39 +0000
committerdrh <drh@noemail.net>2007-12-14 17:24:39 +0000
commit8f0ecaae78c9aec69aac36bae1d6916adbbcc33b (patch)
tree653a640bdea8695024407970edefbd59f0d90886 /src
parenta018dc777bab751d22abd540fc8a542b2368295a (diff)
downloadsqlite-8f0ecaae78c9aec69aac36bae1d6916adbbcc33b.tar.gz
sqlite-8f0ecaae78c9aec69aac36bae1d6916adbbcc33b.zip
Fix a C++-ism in recent changes to select.c. (CVS 4633)
FossilOrigin-Name: 4a00805014a5f4ad862bde0bb55fac934bab41dd
Diffstat (limited to 'src')
-rw-r--r--src/select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/select.c b/src/select.c
index ffaab786c..605a74405 100644
--- a/src/select.c
+++ b/src/select.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
-** $Id: select.c,v 1.371 2007/12/14 16:11:09 drh Exp $
+** $Id: select.c,v 1.372 2007/12/14 17:24:40 drh Exp $
*/
#include "sqliteInt.h"
@@ -1614,10 +1614,10 @@ static int processCompoundOrderBy(
moreToDo = 0;
for(i=0; i<pOrderBy->nExpr; i++){
int iCol;
- Expr *pE;
+ Expr *pE, *pDup;
if( pOrderBy->a[i].done ) continue;
pE = pOrderBy->a[i].pExpr;
- Expr *pDup = sqlite3ExprDup(db, pE);
+ pDup = sqlite3ExprDup(db, pE);
if( pDup==0 ){
return 1;
}