diff options
author | danielk1977 <danielk1977@noemail.net> | 2005-12-07 06:27:43 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2005-12-07 06:27:43 +0000 |
commit | 00fd957b789c64f143b48eaba0c33376b61db56d (patch) | |
tree | 6f79022283c7c403e51c135de31019a4583cde81 /src/where.c | |
parent | f4208043d69f052ff8fef45252f01e5ae27656f6 (diff) | |
download | sqlite-00fd957b789c64f143b48eaba0c33376b61db56d.tar.gz sqlite-00fd957b789c64f143b48eaba0c33376b61db56d.zip |
Add some tests for malloc() failure within the column_name() and column_decl() APIs. (CVS 2805)
FossilOrigin-Name: 78f10ca0a6a02e9e8e6811489841a19e213f3afb
Diffstat (limited to 'src/where.c')
-rw-r--r-- | src/where.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/where.c b/src/where.c index d952d078f..d643bde05 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.186 2005/12/06 12:53:01 danielk1977 Exp $ +** $Id: where.c,v 1.187 2005/12/07 06:27:44 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -521,7 +521,7 @@ static int isLikeOrGlob( return 0; } sqlite3DequoteExpr(pRight); - z = pRight->token.z; + z = (char *)pRight->token.z; for(cnt=0; (c=z[cnt])!=0 && c!=wc[0] && c!=wc[1] && c!=wc[2]; cnt++){} if( cnt==0 || 255==(u8)z[cnt] ){ return 0; |