diff options
author | drh <drh@noemail.net> | 2004-02-11 10:35:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-02-11 10:35:29 +0000 |
commit | 7e26d7509419ec076d498ebcf13dcde84c8f16b6 (patch) | |
tree | 7b5a80c2a67e0df2dfe537129308907c209a4b94 /src/expr.c | |
parent | bbd82df617ee94a0371e867a95cee007f4473bd8 (diff) | |
download | sqlite-7e26d7509419ec076d498ebcf13dcde84c8f16b6.tar.gz sqlite-7e26d7509419ec076d498ebcf13dcde84c8f16b6.zip |
Fix an uninitialized variable in expr.c. Ticket #604. (CVS 1225)
FossilOrigin-Name: 1673bf7c7b64542530ee03328186be33cb88c98d
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index f70c8f452..dbea08eed 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.107 2004/01/25 22:44:59 drh Exp $ +** $Id: expr.c,v 1.108 2004/02/11 10:35:30 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -415,7 +415,7 @@ static int lookupName( int i, j; /* Loop counters */ int cnt = 0; /* Number of matching column names */ int cntTab = 0; /* Number of matching table names */ - sqlite *db; /* The database */ + sqlite *db = pParse->db; /* The database */ assert( pColumnToken && pColumnToken->z ); /* The Z in X.Y.Z cannot be NULL */ if( pDbToken && pDbToken->z ){ |