aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-01-21 11:10:16 +0000
committerdrh <>2025-01-21 11:10:16 +0000
commitd0db5edf612fff09e4548e952247ffaec53e1c19 (patch)
tree06354c474463146b6c94972d8f6fb2e4d42305aa /src
parentc69d537b93c85222ca8d44287b4167a2b28d1145 (diff)
downloadsqlite-d0db5edf612fff09e4548e952247ffaec53e1c19.tar.gz
sqlite-d0db5edf612fff09e4548e952247ffaec53e1c19.zip
Use Tcl_GetString() instead of Tcl_GetCharLength() to test for a zero-length
string in the TCL interface, since that is much more efficient. FossilOrigin-Name: a8d9dcfd23fbfcd887e451382836c1e88215984cc01e00be11387dbf4ab26fd8
Diffstat (limited to 'src')
-rw-r--r--src/tclsqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 598c9355f..76c9ef75c 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -1964,7 +1964,7 @@ static void DbHookCmd(
}
if( pArg ){
assert( !(*ppHook) );
- if( Tcl_GetCharLength(pArg)>0 ){
+ if( Tcl_GetString(pArg)[0] ){
*ppHook = pArg;
Tcl_IncrRefCount(*ppHook);
}