diff options
author | drh <> | 2025-01-21 11:10:16 +0000 |
---|---|---|
committer | drh <> | 2025-01-21 11:10:16 +0000 |
commit | d0db5edf612fff09e4548e952247ffaec53e1c19 (patch) | |
tree | 06354c474463146b6c94972d8f6fb2e4d42305aa /src | |
parent | c69d537b93c85222ca8d44287b4167a2b28d1145 (diff) | |
download | sqlite-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.c | 2 |
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); } |