aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-08-29 16:40:52 +0000
committerdrh <drh@noemail.net>2005-08-29 16:40:52 +0000
commitb46b57745ddf0d131843e229fc13a3dbc231f545 (patch)
treeab03ce0a1062f9eb60b420decc0b1aa51922e0ba /src/where.c
parentd64fe2f374f7a278bff67df9968f939b60faa222 (diff)
downloadsqlite-b46b57745ddf0d131843e229fc13a3dbc231f545.tar.gz
sqlite-b46b57745ddf0d131843e229fc13a3dbc231f545.zip
Initialize a local variable to avoid a nuisance compiler warning.
Ticket #1394. (CVS 2638) FossilOrigin-Name: 9b914901a18f8ea39c39a51509c0b3b862c13d6a
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/where.c b/src/where.c
index 3e59338ec..27b05e21d 100644
--- a/src/where.c
+++ b/src/where.c
@@ -16,7 +16,7 @@
** so is applicable. Because this module is responsible for selecting
** indices, you might also think of this module as the "query optimizer".
**
-** $Id: where.c,v 1.166 2005/08/28 17:00:25 drh Exp $
+** $Id: where.c,v 1.167 2005/08/29 16:40:53 drh Exp $
*/
#include "sqliteInt.h"
@@ -736,10 +736,10 @@ static int isSortingIndex(
int nEqCol, /* Number of index columns with == constraints */
int *pbRev /* Set to 1 if ORDER BY is DESC */
){
- int i, j; /* Loop counters */
- int sortOrder; /* Which direction we are sorting */
- int nTerm; /* Number of ORDER BY terms */
- struct ExprList_item *pTerm; /* A term of the ORDER BY clause */
+ int i, j; /* Loop counters */
+ int sortOrder = SQLITE_SO_ASC; /* Which direction we are sorting */
+ int nTerm; /* Number of ORDER BY terms */
+ struct ExprList_item *pTerm; /* A term of the ORDER BY clause */
sqlite3 *db = pParse->db;
assert( pOrderBy!=0 );