diff options
author | drh <drh@noemail.net> | 2005-06-06 14:45:42 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-06-06 14:45:42 +0000 |
commit | defc997230f72d9d2e26b2b03d0b8bd3c1600ccc (patch) | |
tree | d3baebfcedb8636d8056219e9f2efa53de5b1eb5 /src | |
parent | a38b4134e7efc3f4f0bc6e50dd27300eed4fed24 (diff) | |
download | sqlite-defc997230f72d9d2e26b2b03d0b8bd3c1600ccc.tar.gz sqlite-defc997230f72d9d2e26b2b03d0b8bd3c1600ccc.zip |
Fix a bug in the malloc2 tests introduced by checkin (2473). (CVS 2489)
FossilOrigin-Name: fafaa18eea1e7142e1094b5f6d544d20c9df7c0f
Diffstat (limited to 'src')
-rw-r--r-- | src/tokenize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index ddeb2412f..a54abb96c 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -15,7 +15,7 @@ ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** -** $Id: tokenize.c,v 1.102 2005/05/22 20:12:37 drh Exp $ +** $Id: tokenize.c,v 1.103 2005/06/06 14:45:43 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -344,7 +344,7 @@ int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){ pEngine = sqlite3ParserAlloc((void*(*)(int))sqlite3MallocX); if( pEngine==0 ){ sqlite3SetString(pzErrMsg, "out of memory", (char*)0); - return 1; + return SQLITE_NOMEM; } assert( pParse->sLastToken.dyn==0 ); assert( pParse->pNewTable==0 ); |