diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-24 20:54:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-24 20:54:34 (GMT) |
commit | 6bdd87140b59bb9442e2e281da2c1c65bfaccd37 (patch) | |
tree | fa51bc676868b1afd638f3d236204ef929913451 /generic/tclInterp.c | |
parent | 875e3b392ba9b930fa009077b451b08f15b4ea72 (diff) | |
parent | af3e9b9825f98a98907966cdd71286c1f00c8bcf (diff) | |
download | tcl-6bdd87140b59bb9442e2e281da2c1c65bfaccd37.zip tcl-6bdd87140b59bb9442e2e281da2c1c65bfaccd37.tar.gz tcl-6bdd87140b59bb9442e2e281da2c1c65bfaccd37.tar.bz2 |
More work in progress
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r-- | generic/tclInterp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c index 3c2f2be..0b2e7f7 100644 --- a/generic/tclInterp.c +++ b/generic/tclInterp.c @@ -2378,9 +2378,9 @@ ChildBgerror( Tcl_Obj *const objv[]) /* Argument strings. */ { if (objc) { - int length; + size_t length; - if (TCL_ERROR == TclListObjLength_(NULL, objv[0], &length) + if (TCL_ERROR == Tcl_ListObjLength(NULL, objv[0], &length) || (length < 1)) { Tcl_SetObjResult(interp, Tcl_NewStringObj( "cmdPrefix must be list of length >= 1", -1)); |