aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2005-08-16 11:11:34 +0000
committerdrh <drh@noemail.net>2005-08-16 11:11:34 +0000
commitce604012ac03ab17ec2825aa200d36cc17695f98 (patch)
treed6498f4a02ce6a907dc0a56ccbb89850a3193ff4 /src/tclsqlite.c
parentc182d16302994d1950abc4f59119c57756919228 (diff)
downloadsqlite-ce604012ac03ab17ec2825aa200d36cc17695f98.tar.gz
sqlite-ce604012ac03ab17ec2825aa200d36cc17695f98.zip
Null-terminate the strings array passed to Tcl_GetIndexFromObj. Bug
reported on the mailing list. (CVS 2596) FossilOrigin-Name: 3a7918a66bf98368c2520f94e505a21a1df3383c
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 91398181a..6a36437d6 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -11,7 +11,7 @@
*************************************************************************
** A TCL Interface to SQLite
**
-** $Id: tclsqlite.c,v 1.130 2005/08/02 17:15:15 drh Exp $
+** $Id: tclsqlite.c,v 1.131 2005/08/16 11:11:35 drh Exp $
*/
#ifndef NO_TCL /* Omit this whole file if TCL is unavailable */
@@ -1512,7 +1512,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
pScript = objv[2];
} else {
static const char *TTYPE_strs[] = {
- "deferred", "exclusive", "immediate"
+ "deferred", "exclusive", "immediate", 0
};
enum TTYPE_enum {
TTYPE_DEFERRED, TTYPE_EXCLUSIVE, TTYPE_IMMEDIATE