diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-05-30 21:31:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-05-30 21:31:11 (GMT) |
commit | 614c8b3360d596c46d27b40e19a52698b3506c8c (patch) | |
tree | 839085c5e5731166d22df9c9ede86f85f2006c8f | |
parent | a4f289d5b5a7e9f55955463e03ed4140b324d1c6 (diff) | |
download | tcl-614c8b3360d596c46d27b40e19a52698b3506c8c.zip tcl-614c8b3360d596c46d27b40e19a52698b3506c8c.tar.gz tcl-614c8b3360d596c46d27b40e19a52698b3506c8c.tar.bz2 |
Let's see if this helps
-rw-r--r-- | win/tclWinChan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c index 545aa2d..0fc7455 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -1004,10 +1004,6 @@ FileGetOptionProc( */ if ((len > 1) && (strncmp(optionName, "-stat", len) == 0)) { - return TCL_OK; - } - - if (valid) { Tcl_Obj *dictObj = StatOpenFile(infoPtr); const char *dictContents; Tcl_Size dictLength; @@ -1030,6 +1026,10 @@ FileGetOptionProc( Tcl_DecrRefCount(dictObj); return TCL_OK; } + + if (valid) { + return TCL_OK; + } return Tcl_BadChannelOption(interp, optionName, "stat"); } |