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

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

Issue 5626002: Update sqlite to 3.7.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/third_party/sqlite/src
Patch Set: Remove misc change. Created 10 years 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/test6.c ('k') | third_party/sqlite/src/src/test8.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/src/test7.c
diff --git a/third_party/sqlite/src/src/test7.c b/third_party/sqlite/src/src/test7.c
index 6eebc7c04ce872d5d2f964393af2602811c6b31e..3383d868d36fb546cc0c74c1e08fdd2e2a0cd0b9 100644
--- a/third_party/sqlite/src/src/test7.c
+++ b/third_party/sqlite/src/src/test7.c
@@ -11,8 +11,6 @@
*************************************************************************
** Code for testing the client/server version of the SQLite library.
** Derived from test4.c.
-**
-** $Id: test7.c,v 1.13 2008/10/12 00:27:54 shane Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -166,7 +164,7 @@ static int tcl_client_create(
}
threadset[i].busy = 1;
sqlite3_free(threadset[i].zFilename);
- threadset[i].zFilename = sqlite3DbStrDup(0, argv[2]);
+ threadset[i].zFilename = sqlite3_mprintf("%s", argv[2]);
threadset[i].opnum = 1;
threadset[i].completed = 0;
rc = pthread_create(&x, 0, client_main, &threadset[i]);
@@ -509,7 +507,7 @@ static int tcl_client_compile(
client_wait(&threadset[i]);
threadset[i].xOp = do_compile;
sqlite3_free(threadset[i].zArg);
- threadset[i].zArg = sqlite3DbStrDup(0, argv[2]);
+ threadset[i].zArg = sqlite3_mprintf("%s", argv[2]);
threadset[i].opnum++;
return TCL_OK;
}
« no previous file with comments | « third_party/sqlite/src/src/test6.c ('k') | third_party/sqlite/src/src/test8.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698