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

Unified Diff: third_party/sqlite/src/src/test5.c

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/src/test4.c ('k') | third_party/sqlite/src/src/test6.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/src/test5.c
diff --git a/third_party/sqlite/src/src/test5.c b/third_party/sqlite/src/src/test5.c
index 369580b2fc5338fbfad6e81443efcb0a5c788c65..504fdb8a979e527c51bd5af41d7ba0f387cb5f83 100644
--- a/third_party/sqlite/src/src/test5.c
+++ b/third_party/sqlite/src/src/test5.c
@@ -14,8 +14,6 @@
** testing of the SQLite library. Specifically, the code in this file
** is used for testing the SQLite routines for converting between
** the various supported unicode encodings.
-**
-** $Id: test5.c,v 1.22 2008/08/12 15:04:59 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include "vdbeInt.h"
@@ -157,7 +155,7 @@ static int test_translate(
if( enc_from==SQLITE_UTF8 ){
z = Tcl_GetString(objv[1]);
if( objc==5 ){
- z = sqlite3DbStrDup(0, z);
+ z = sqlite3_mprintf("%s", z);
}
sqlite3ValueSetStr(pVal, -1, z, enc_from, xDel);
}else{
« no previous file with comments | « third_party/sqlite/src/src/test4.c ('k') | third_party/sqlite/src/src/test6.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698