Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/sqlite/src/ext/fts1/fts1.c

Issue 6823057: Cleanup SQLite 3.6.18 import. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/doc/report1.txt ('k') | third_party/sqlite/src/ext/fts1/fts1_tokenizer1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/ext/fts1/fts1.c
diff --git a/third_party/sqlite/src/ext/fts1/fts1.c b/third_party/sqlite/src/ext/fts1/fts1.c
index d5d00b94f115b0f3792feacf31352934b3a98245..d5429ff320a9b7ebebcd6d2f18f3c9e3360735f7 100644
--- a/third_party/sqlite/src/ext/fts1/fts1.c
+++ b/third_party/sqlite/src/ext/fts1/fts1.c
@@ -208,7 +208,7 @@ static int safe_isspace(char c){
return (c&0x80)==0 ? isspace(c) : 0;
}
static int safe_tolower(char c){
- return (c>='A' && c<='Z') ? (c-'A'+'a') : c;
+ return (c&0x80)==0 ? tolower(c) : c;
}
static int safe_isalnum(char c){
return (c&0x80)==0 ? isalnum(c) : 0;
@@ -1225,6 +1225,10 @@ static int sql_step_statement(fulltext_vtab *v, fulltext_statement iStmt,
break;
}
return rc;
+
+ err:
+ sqlite3_finalize(s);
+ return rc;
}
/* Like sql_step_statement(), but convert SQLITE_DONE to SQLITE_OK.
« no previous file with comments | « third_party/sqlite/src/doc/report1.txt ('k') | third_party/sqlite/src/ext/fts1/fts1_tokenizer1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698